Chapter 9 - Formatted Input/Output: Outline
Chapter 9 - Formatted Input/Output: Outline
9.1 Introduction
• In this chapter
– Presentation of results
– scanf and printf
– Streams (input and output)
• gets, puts, getchar, putchar (in <stdio.h>)
9.2 Streams
• Streams
– Sequences of characters organized into lines
• Each line consists of zero or more characters and ends with
newline character
• ANSI C must support lines of at least 254 characters
– Performs all input and output
– Can often be redirected
• Standard input – keyboard
• Standard output – screen
• Standard error – screen
• More Chapter 11
A
This is a string Program Output
This is a string
This is also a string
hello 7 a 1.230000
Program Output
hello 7 a 1.230000
1427
1427.00