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

What would be the output of the following code segment? cout.setf(ios:: showpos); cout.precision(2); cout<< 345.609

  1. 345.60
  2. +345.61
  3. +345.6
  4. +345.609



Answer: 
Option b: +345.61

Explanation Here

Post a Comment

0 Comments