cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
i cant see my results
i cant see my results
Apr 12, 2016 at 4:49pm UTC
ashley21466
(18)
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 UTC
MrHutch
(1822)
Why don't you just print out the value?
https://ideone.com/DTlT1Q
Apr 12, 2016 at 4:56pm UTC
S G H
(2638)
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.