App Logo

No.1 PSC Learning App

1M+ Downloads
In C language, the getchar function is used to :

APrint the ASCII code of a character

BTo assign a character typed at the keyboard to a variable

CTo print a character on the screen

DAll of them

Answer:

B. To assign a character typed at the keyboard to a variable


Related Questions:

An ...... program is one that is ready to run and does not need to be altered in anyway :
What is true about a reference in C++?
Which command used to display the current working directory in Linux ?
Resolution of externally defined symbol is performed by:
In C++ you have to use the _______ function to close a data file.