Chapter 16. Input and Output Operations in C
ALL READING AND WRITING OF DATA up to this point has been done through your terminal.[1] When you wanted to input some information, you either used the scanf
or getchar
functions. All program results were displayed in your window with a call to the printf
function.
The C language itself does not have any special statements for performing input/output (I/O) operations; all I/O operations in C must be carried out through function calls. These functions are contained in the standard C library.
Recall the use of the following include
statement from previous programs that used the printf
function:
#include <stdio.h>
This include file contains function declarations and macro definitions associated with the I/O ...
Get Programming in C, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.