2081 11

BIT153 ยท 2081 ยท 5 marks

Illustrate the use of set w and set precision with example.

Illustrate the use of set w and set precision with example. [5]

Object Oriented ProgrammingChapter 10: Exception Handling and File I/OStream manipulators

setw and setprecision are output formatting manipulators defined in the header file <iomanip. They are used to control the appearance of output in C++. --- - Sets the minimum field width for the next output value. - The output is right-aligned by default within the specified width. - It applies o...