i cant see my results

Apr 12, 2016 at 4:49pm
int result, a=0, b=1, c=5;

result = a > 5 || b < 5;

What value is stored in result?
Apr 12, 2016 at 4:55pm
Why don't you just print out the value?

https://ideone.com/DTlT1Q
Apr 12, 2016 at 4:56pm
If the source type is bool, the value false is converted to zero and the value true is converted to one.


Either a 1 or a 0. In this case, 1.
Topic archived. No new replies allowed.