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

1) Stream manipulator showpoint forces floating-point values to print with the default six digits of precision unless the precision value has been changed, in which case floating-point values print with the specified precision.
2) The ostream member function put outputs the specified number of characters.
3) The stream manipulators dec, oct and hex affect only the next integer output operation.
4) By default, memory addresses are displayed as long integers.


1) True.
2) False. The ostream member function put outputs its single-character argument.
3) False. The stream manipulators dec, oct and hex set the output format state for integers to the specified base until the base is changed again or the program terminates.
4) False. Memory addresses are displayed in hexadecimal format by default. To display addresses as long integers, the address must be cast to a long value.

Computer Science & Information Technology

You might also like to view...

The Internet term "MIME" stands for ____.

A. Multiple Internet Message Entities B. Multiple Internet Mail Entities C. Mail Internet Multipurpose Extensions D. Multipurpose Internet Mail Extensions

Computer Science & Information Technology

In what ways do console computers like Xbox and PlayStation represent the cutting edge of modern computing?

What will be an ideal response?

Computer Science & Information Technology

Why is a post-implementation evaluation important? Who should conduct it, and why?

What will be an ideal response?

Computer Science & Information Technology

Which is the default option in the Blend Options dialog box?

A. Specified Steps B. Specified Distance C. Smooth Color D. Smooth Blend

Computer Science & Information Technology