what is the use of getchar() mcq
Answers
Answer:Uses;
getchar() function is used to get/read a character from keyboard input. Please find below the description and syntax for above file handling function. putchar() function is used to write a character on standard output/screen.
For MCq;
What is use of eof() ? Returns true if a file open for reading has reached the next character. Returns true if a file open for reading has reached the next word. Returns true if a file open for reading has reached the middle.
Answer:
Getchar() is employed to urge or read the input (i.e one character) at run time.
Explanation:
getchar() function is employed to get/read a personality from keyboard input. in an exceedingly computer program, we are able to use getchar function as below.
getchar(char); where, char could be a character variable/value.
getchar could be a function in C artificial language that reads one character from the quality input stream stdin, no matter what it's, and returns it to the program. it's laid out in ANSI-C and is that the most elementary input function in C.
getchar() also accustomed the subsequent input character whenever it's called EOF when it encounters end of file
#SPJ3