Answer to Question #147616 in C++ for Usama Saleem

Question #147616
What will be the output of the following:
i) int x=5; cout<<(x=10)<<" "<<(x==10)<<endl;
ii) cout<<(100<20)<<" "<<(100>20);
iii) int x=5; cout<<(x + 2 < x / 10)<<endl;
iv) bool x =192;cout << x;
1
Expert's answer
2020-11-29T23:48:59-0500

Output:

i) 10 0

ii) 0 1

iii) 0

iv) 1


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog