CH 3. INPUT/OUTPUT INSTRUCTIONS IN C Flashcards
c language uses __ in place of i/o instructions
functions
there are some functions which have became standard for i/o these functions are stored in ___
standard i/o library ie header file
before writing input output instructions every program must include ___
include
state the use of #include in program
the statement will tell the compiler to search for the file, place its contents at the program. the contents of header will now be a part of program.
state the types of i/o in c
console i/o
disk i/o
port i/o
what is console i/o
the input is supplied from keyboard and output is printed on terminal
what is disk i/o
i/o on floppy disks or hard disks ie secondary storage devices
what is port i/o
i/o operations on ports
the function used to input data is ___.
printf
the function used to output data is __
scanf
most of the standard i/o operations are included in ___ file.
stdio.h
console i/o can be ___ and ___
formatted and unformatted
___ i/o allows us to input/display output as per our requirements
formatted
what is formatted i/o?
,
Getch() are used to read characters in ____ input/output
Unformatted
State the use of foll functions:
Getch()
Used in unformatted i/o. Used to read input from terminal without displaying it on screen
State the use of following functions:
Getche
Will read the character typed with echoing(displaying) the enterer character on screen
State the use of foll: getchar()
Used to read unformatted input and the entered characters will rchoe on screen when enter key is typed.
State the use of foll: putch()
Outputs unformatted character on screen
State the use of foll: putchar()
Used to print unformatted output when the variable is hardcored. The syntax is putchar(variable name)
State syntax of foll:
Getchar
Putchar
- Getchar: variable name=getchar();
Putchar: putchar=(variable name);