Introduction to C programming II Flashcards
What is a stream?
A stream is a sequence of characters flowing from one place to another.
Types of stream.
Input stream: data flows from input device into memory.
Output stream: data flows from memory to output device e.g monitor, file, printer
What are the standard I/O streams
stdin: Standard input stream
stdout: Standard output stream
stderr: standard error stream.
What is Formatted I/O
Refers to the conversion of data to and from a stream of characters.
What is a conversion specifer
A conversion specifier is a symbol that is used as a placeholder in a formatting string.
What are some examples of format specifiers
%d
%6d - prints a decimal integer with a width of at least 6 wide
%f
%.4f - prints a floating point with a precision of four character after the decimal point
%3.2f