INPUT AND OUTPUT OF DATA

In ‘C’ language input and output of data is done by a collection of library functions like getchar, putchar, scanf, printf, gets and puts. These functions permit the transfer of information between the computer and the standard input/output devices. The library function getchar and putchar as the name suggests, allow single characters to be transferred into and out of the computer, scanf and printf permit the transfer of single characters, numerical values and strings, gets and puts facilitate the input and output of strings. An input/output function can be accessed from anywhere within a program simply by writing the function name, followed by a list of parameters enclosed in parentheses. Some input/output functions do not require parameters, but the empty parentheses must appear. ‘C’ include a collection of header file that provide necessary information in support of the various library functions. The header file stdio.h contains the information about input/output library functions. In this lesson we will discuss some input/output functions in detail.

INPUT AND OUTPUT OF DATA - OBJECTIVES

After going through this lesson you would be able to

  • explain getchar function
  • define putchar function
  • explain scanf function
  • explain printf function
  • describe gets & puts function
  • use interactive programming

INPUT AND OUTPUT OF DATA - Index

  • GETCHAR FUNCTION
  • PUTCHAR FUNCTION
  • SCANF FUNCTION
  • PRINTF FUNCTION
  • GETS AND PUTS FUNCTION
  • INTERACTIVE PROGRAMMING
  • IMPORTANT QUESTIONS

 

Complete study material of INPUT AND OUTPUT OF DATA

Leave a Reply

Your email address will not be published. Required fields are marked *