Skip to main content

Posts

Showing posts with the label putch

Input and Output(I/O) Functions in C

            Reading the data from the input devices and displaying the result on the screen, are the two main task of any program. To perform these tasks, C has a number of input and output functions. When a program needs data, it takes the data through the input functions and sends results obtained through the output functions. Thus the input/output functions are the link between the user and the terminal. There are number of input/output functions in c based on the data types. The input/output functions are classified into two types. 1) Formatted functions               Input →| Program |→Output 2) Unformatted functions. 1) Formatted Functions: The input function scanf() and  output function printf() fall under this category. These formatted functions allow us to input or output in a fixed or required format. For example, while displaying value of certain variable, we...