CH8/CH9 Test Flashcards
A(n) ________ can be used in a scanf conversion specifier to indicate that a specific number of characters or digits should be read from the input stream.
field width
The field width and precision in a printf conversion specifier can be controlled with integer expressions by substituting a(n) __ for the field width or for the precision and placing an integer expression in the corresponding argument of the argument list.
asterisk
All input and output is dealt with in the form of __
streams
The __ stream is normally connected to the keyboard *****
standard input
The __ stream is normally connected to the computer screen.
standard output
Precise output formatting is accomplished with the __ function.
printf
The format control string may contain __, __, __, __ and __.
flags, field widths, precisions, conversion specifiers and literal characters.
The conversion specifier __ or __ may be used to output a signed decimal integer
d or i
The conversion specifiers __, __ and __ are used to display unsigned integers in octal, decimal and hexadecimal form, respectively.
o, u and x
The modifiers __ and __ are placed before the integer conversion specifiers
to indicate that short or long integer values are to be displayed.
H and L
The conversion specifier __ is used to display a floating-point value in exponential notation ***
%e
The modifier __ is placed before any floating-point conversion specifier to indicate
that a long double value is to be displayed
L
The conversion specifiers e, E and f are displayed with __ digits of precision to the right of the decimal point if no precision is specified.
6
The conversion specifiers __ and __ are used to print strings and characters, respectively.
s and c
All strings end in the __ character
null