CJCoding With Joseph
15free / daySign inCreate account
Back to Code Walkthrough

Booleans Printed as Integers

C++ code walkthrough · Question 28
easyOperators

Code

Read carefully. What does this print?
1#include <iostream>
2using namespace std;
3int main() {
4 bool t = (5 > 3);
5 bool f = (2 == 4);
6 cout << t << " " << f << " " << (t + f) << endl;
7 return 0;
8}

Your answer