#include <stdio.h> int main(void) { volatile unsigned int temp = 10; if( temp == 10 ) { temp = 30; } // sometimes you may use assignment operator instead of comparision. // this may not generate any warning and can result in nasty rutime issue. // below if condition is always. if( temp = 10 ) { temp = 40; } }