Introduction to input and output operations in #C (module 13)
In this section we will discuss on introduction to input and output functions in #C language and writing the input and output functions.
This is the 13th module on learning C with us. Earlier we discussed on the basic introduction and structure of C, preprocessor it's features, intermediate and executable codes. compilation and execution process of a C program. And keywords and identifiers, data types, variables and constants, scope of variables, operators and expressions in C. Type casting in #C.
In this section we will discuss on managing input and output operations in #C.
Introduction to input and ououtput operations :-
Reading processing, and writing of data are the three essential functions of a computer program. Most programs take some data as input and display the processed data, often known as information or results on a suitable medium.
So far we have seen two methods of providing data to the program variables. One method is to assign values to variables through the assignment statements such as x 5; a 0; and so on.
Another method is to use the input function scanf which can read data from a keyboard. We have used both the methods in most of our earlier example programs.
For outputting results we have used extensively the function printf which sends results out to a terminal. Unlike other high-level languages, C does not have any built-in input/output statements as part of its syntax.
All input/output operations are carried out through function calls such as printf and scanf. There exist several functions that have more or less become standard for input and output operations in C. These functions are collectively known as the standard I/O library.
In next module we will discuss on reading and writing a character in #C program using input and output functions. For more information please be updated with us only on Www.newsandstory.com
Total 1477 views