Skip to Main Content
Programming in C, Third Edition
book

Programming in C, Third Edition

by Stephen G. Kochan
July 2004
Beginner to intermediate content levelBeginner to intermediate
576 pages
12h 3m
English
Sams
Content preview from Programming in C, Third Edition

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Programming in C, Fourth Edition

Programming in C, Fourth Edition

Stephen G. Kochan
C Programming Language, 2nd Edition

C Programming Language, 2nd Edition

Brian W. Kernighan, Dennis Ritchie
C How to Program, Fifth Edition

C How to Program, Fifth Edition

P. J. Deitel - Deitel & Associates, Inc., H. M. Deitel - Deitel & Associates, Inc.

Publisher Resources

ISBN: 9780768689068Purchase book