Please remember that if we use any preprocessor directives, it means that the
preprocessor has to perform specific actions like changing a lengthy string into a shorter one or
ignoring some portion of the source program or inserting the contents of other files into the
source file, and so on.
2.2 C PRIMITIVE INPUT-OUTPUT USING GETCHAR AND PUTCHAR
We will now discuss the getchar( ) and putchar( ) functions of C.
I. The getchar Function: getchar( );
The getchar function reads a single character from standard input. It takes no parameters and it returns
the input character. In general, a reference to the getchar function is written as:
Do'stlaringiz bilan baham: |