C++ MQCs with Explanation ( MANAGING CONSOLE I/O OPERATIONS )

Which of the following statements are legal? (i) cout << setwidth (5); (ii) cout.setprecision (3); (iii) cout <<123.45 << setw (10);

  1. i only
  2. and ii
  3. i and iii
  4. iii only



Answer: 
Option d: iii only

Explanation Here

Post a Comment

0 Comments