What does the getche() function do in C/C++?

  • AIt will display the character on the screen that user has entered
  • BIt reads a character from the keyboard without displaying it on the screen
  • CIt reads a string from the user
  • DNone of these
Show answerHide answer

Correct answer A

The getche() function in C/C++ (from the <conio.h> library) performs two actions: Reads a single character from the keyboard (immediately, without waiting for Enter). Echoes (displays) the character on the screen.