Tuesday, July 16, 2013

Input and Output Functions in C

Before going to the functions, we will first know what is Input Function and What is Output Function.

Input function is that function which is ready to take some value into the program. In C, we have many functions, but the most used Input function is the scanf().


Output function is that which allows a program to print something on to the screen. In C, the most commonly used output function is printf(). Along with the printf() we also use puts() function to print some text on to the screen.

To know the prototypes of the printf() and scanf(), click on the links.

In both printf() and scanf(), we use the format specifiers to take the values or to print some values. This can be best explained if we know what are the existing format specifiers and how to use them.

In the later sections, we will be knowing about the basic usage of the Input and Output functions in C.