© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2024
S. DmitrovićModern C for Absolute Beginnershttps://doi.org/10.1007/979-8-8688-0224-9_28

28. Standard Input and Output

Slobodan Dmitrović1  
(1)
Belgrade, Serbia
 

The C standard library provides functions allowing us to accept data/characters from the standard input and output data/characters to the standard output. The standard input is usually a keyboard. The standard output is typically 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 ...

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.