© Slobodan Dmitrović 2021
S. DmitrovićModern C for Absolute Beginnershttps://doi.org/10.1007/978-1-4842-6643-4_28

28. Standard Input and Output

Slobodan Dmitrović1  
(1)
Belgrade, Serbia
 

The C standard library provides functions that allow us to accept data/characters from the standard input and to output data/characters to the standard output. The standard input is usually a keyboard. The standard output is usually a monitor/console window to which we output the data.

28.1 Standard Input

This chapter describes a few functions that allow us to accept data from the standard input/keyboard. Here, we mention the scanf and the fgets functions. Worth noticing is that these functions are not part of the language per se, but rather a part of the standard library. ...

Get Modern C for Absolute Beginners: A Friendly Introduction to the C Programming Language 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.