Multiple choice technology programming languages

setprecision requires the header file

  1. stdlib.h

  2. iomanip.h

  3. console.h

  4. conio.h

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The setprecision manipulator in C++ is used to set the precision for floating-point output operations. It requires the header file (or iomanip.h in older C++ style). The iostream header provides basic input/output functionality, while iomanip specifically provides I/O manipulators like setprecision, setw, setfill, etc.