Multiple choice

Manipulators are used to

  1. allocate memory

  2. free allocated memory

  3. resolve scope of variable

  4. formats data display

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

Manipulators (like setw, setprecision, endl) are used in C++ input/output streams to format the way data is displayed or read.