Skip to content
Sign in
Computer

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

Tap an option to check the answer. You can also press A–D.

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