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;

Expert's answer

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!

LATEST TUTORIALS
APPROVED BY CLIENTS