Answer the following questions true (T) or false (F)

1. Setting the width of output with the manipulator setw is different from setting the width with the width member function.

2. If the output is too wide for the width specified in a setw manipulator or a call to the width member function, then the output is lost.

1. False
Explanation: These are just two ways to call the same function. The setw manipulator passes the address of the width member function to the stream with parameters and the stream knows to execute the function.. Calling the member function width just avoids one step in the process.
2. False
Explanation: If the output needs more space than you provide in a width member function or a setw manipulator invocation, the output takes all the room it needs. This messes up your formatting but it does output your data, so you can fix things.

Computer Science & Information Technology

You might also like to view...

In Windows Media Player, the individual songs on a CD are also called ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

The search method will find only unpinned programs

Indicate whether the statement is true or false.

Computer Science & Information Technology