What happens to output when data is sent to the output stream width that is wider than that set with the setw(int) manipulator, or equivalently, with cout.width(int)?
What will be an ideal response?
The output stream ignores the setw or width setting. It takes whatever space it needs to output the data. setw or width() only has an effect if the width provided is greater than the data's width.
Computer Science & Information Technology
You might also like to view...
You can save files to the hard drive located inside your computer or to a(n) ________ drive such as a USB flash drive
A) internal B) external C) optional D) compact
Computer Science & Information Technology
Write a single C statement to declare and initialize an array of pointers called ohMy that stores the following string constants: “lions”, “tigers”, “bears”.
What will be an ideal response?
Computer Science & Information Technology