4 ms·
if 47 evaluates the true branch. So in that sense you are correct, however standard C99 (the above mentioned bug uses win32's TRUE which is defined the same way
by stonemetal12 6y ago
if 47 evaluates the true branch. So in that sense you are correct, however standard C99 (the above mentioned bug uses win32's TRUE which is defined the same way) does #define true 1 therefore 47==true is false, even if 47 is true when evaluated.
int a = 47;
if a is true
if a == true is false
if a == false is false
int b;
b = a == true; b = 0
b = a != true; b = 1
b = a == false; b = 0
b = a != false; b = 1