Wednesday, November 2, 2011

Console I/O Functions in C programming language

The screen and keyboard together are called a console. Console I/O functions can be further classified into two categories—formatted and unformatted console I/O functions. The basic difference between them is that the formatted functions allow the input read from the keyboard or the output displayed on the VDU to be formatted as per our requirements. For example, if values of average marks and percentage marks are to be displayed on the screen, then the details like where this output would appear on the screen, how many spaces would be present between the two values, the number of places after the decimal points, etc. can be controlled using formatted functions. The functions available under each of these two categories are shown in Figure 11.1. Now let us discuss these console I/O functions in detail


4 comments:

  1. Thanks for your kind of information

    ReplyDelete
  2. Replies
    1. Together working of keyboard for input and monitor for output

      C languge does not contain any codes to receive data from keyboard and send it on the screen.
      Dennis Ritchie used the Input/output functions from the OS system & linked them with C.
      (printf() and scanf() works according to OS)

      it is all possible through Console..

      Delete
  3. but i heard printf() and scanf() is standard i/o functions

    ReplyDelete