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

1) The stream member function flags with a long argument sets the flags state variable
to its argument and returns its previous value.
2) The stream insertion operator << and the stream extraction operator >> are overloaded
to handle all standard data types—including strings and memory addresses (stream insertion
only)—and all user-defined data types.
3) The stream member function flags with no arguments resets the stream’s format state.
4) Input with the stream extraction operator >> always skips leading white-space characters
in the input stream, by default.
5) The stream member function rdstate returns the current state of the stream.

1. False. The stream member function flags with a fmtflags argument sets the flags
state variable to its argument and returns the prior state settings.
2. False. The stream insertion and stream extraction operators are not overloaded for all
user-defined types. You must specifically provide the overloaded operator functions
to overload the stream operators for use with each user-defined type you create.
3. False. The stream member function flags with no arguments returns the current format
settings as a fmtflags data type, which represents the format state.
4. True.
5. True.

Computer Science & Information Technology

You might also like to view...

Most instant messaging services provide a high level of encryption for their messages

Indicate whether the statement is true or false

Computer Science & Information Technology

A(n) _____________________ is a disk medium that contains software images to reinstall, repair or restore an operating system on a PC's hard drive to its original operational state.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology