






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An overview of input/output (i/o) in c programming language. It explains that c does not have built-in statements for i/o and introduces the concept of streams, which are sequences of characters organized into lines. The standard input, output, and error streams and demonstrates how to use formatted output with printf and formatted input with scanf. It also covers the use of various format conversion specifiers and provides examples of using getchar, putchar, getc, and putc functions.
Typology: Slides
1 / 12
This page cannot be seen from the preview
Don't miss anything!







Lecture 6
printf ( ) ;
scanf ( ) ;
getchar ( ) ;
char ch; ch = getchar ( ) ;
getc ( *file ) ;
char ch; ch = getc (stdin) ; /* input from keyboard / ch = getc (fileptr) ; / input from a file */
putc ( char, *file ) ;
char ch; ch = getc (stdin) ; /* input from keyboard / putc (ch, stdout) ; / output to the Docsity.com