Is there a difference in the order of the comparison operator?
#define CONST_VALUE 5 int variable; ... if ( variable == CONST_VALUE ) // Method 1 ... O
As others mentioned, CONST_VALUE == variable avoids the = typo.
I still do "variable == CONST_VALUE", because I think its more readable and when I see something like:
if(false == somevariable)
my bloodpressure goes up.