+ 1
What is the answer of the fololwing logical expression: 0||8 How?
2 Respuestas
+ 3
In C++, 0 is false and any non-zero value is true. So 0||8 gives true.
Chris G, no it does not fail (albeit it may do something else than expected), = is the assignment operator (you use == to test for equality), and true and false aren't capitalized.
0
Thanks Zen... very hepful.