[amp_mcq option1=”adin” option2=”advin” option3=”edlin” option4=”endl E. lineadv” correct=”option4″]
The correct answer is D. endl.
A stream manipulator is a function that is used to control the output of a stream. endl is a stream manipulator that advances the cursor to the next line on the computer screen. It is defined in the header file .
The other options are incorrect because they are not stream manipulators.
- Adin is not a stream manipulator. It is a function that is used to add a line to a file.
- Advin is not a stream manipulator. It is a function that is used to advance the cursor to the next line in a file.
- Edlin is not a stream manipulator. It is a command-line editor.
- Lineadv is not a stream manipulator. It is a function that is used to advance the cursor to the next line in a string.