Why we are using getchar in program...
Answers
Answered by
5
getchar is a function in C programming language that reads a single character from the standard input stream stdin, regardless of what it is, and returns it to the program. It is specified in ANSI-C and is the most basic input function in C. It is included in the stdio.h header file.
Answered by
3
In a progran we are using getchar because it is an unformatted input function supported by c language .
it is un -buffered input function.
this functions waits for users to press a key from keyboard and instantly transfers the value into the variable...
hopes helps....
Anonymous:
great answer
Similar questions