[Solved] : Question 13353

Write the display produced when each of the following C++ statements is performed. If nothing is displayed due to an error, then answer “nothing.”

1.cout << 5/10;
2.cout << 5/float(10);
3.cout << “2/4”;
4.cout << (1+5/2 <= 3);
5.cout << 6 – 6 % 4 ;
6.cout << 8 * 3 / 8 * 8 / 3;
7.cout << (2 * 6 / 4 + 2 == 4) ;
8.cout << (10/4.0 <= 10.0/4);
9.cout << 8 / (8 % 6);
10.cout << (5 / 3 < 1 && 3 / 6.0 >= 0.5);


Expert Answer


Answer to : Question 13353

Leave a Comment

About

We are the best freelance writing portal. Looking for online writing, editing or proofreading jobs? We have plenty of writing assignments to handle.

Quick Links

Browse Solutions

Place Order

About Us

× How can I help you?