See all articles from CATS v8 n1
Last month we looked at a simple program. This month we will look at how to do input and output in C.
C has no built in input or output commands. Functions are called that perform input and output. Last month we used the function printf. This month we wiil use the function getchar. Getchar gets one character from the standard input channel, the keyboard. The input from getchar is assigned to an integer variable.