A program is only useful to the extent that it communicates the result of a computation to the user. Moreover, the most useful programs are those whose executions vary according to user-provided input. This chapter covers everyday usage of the standard I/O (input/output) library, stdio.h. As with the rest of this text, the coverage of the standard I/O library is not meant to be exhaustive but rather tutorial in nature. Standard references, such as Kernighan and Ritchie’s The C Programming Language, fill in the details; alternately, technical descriptions of standard library functions—including those used in this chapter: printf, scanf, and sscanf—are easily found online.
KeywordsCommand Line Fibonacci Sequence Format String Line Argument Usage Message
Unable to display preview. Download preview PDF.