OUTPUTS (after running)
Enter the text: DR. RAJIV CHOPRA
The output text is: DR. RAJIV CHOPRA
2.3 SIMPLE INPUT/OUTPUT
Certain functions are used for data input and data output. These functions are called
standard input-
output functions.
In C, these functions are put under two categories:
(a) Formatted I/O functions
(b) Unformatted I/O functions
Let us discuss each of them.
I. Formatted I/O Functions
Formatted I/O functions are used to input data from a standard input device as well as to send output
to a standard output device. Under this category, the
scanf( )
function is used to read values from the
keyboard while the
printf( )
function is used to display values on the output terminal.
Both of these
Do'stlaringiz bilan baham: |