When will this condition evaluate to False?
Posted
by a_m0d
on Stack Overflow
See other posts from Stack Overflow
or by a_m0d
Published on 2010-05-05T05:59:25Z
Indexed on
2010/05/05
6:08 UTC
Read the original article
Hit count: 149
Under what circumstances will the "False" part of the following code be executed?
x = 20;
y = -30;
if (x > y) {
// True part
}
else {
// False part
}
NB: Language is C, compiler is gcc (although some other compilers may also do the same thing).
© Stack Overflow or respective owner