What is the difference between getch and getche functions? | Sololearn: Learn to code for FREE!

+10

What is the difference between getch and getche functions?

4/1/2018 5:03:15 PM

Rishu Kumar

2 Answers

New Answer

+5

getch() reads only single character from the screen getche() reads a single character from the keyboard and displays immediately on output screen without waiting for enter key.

+5

Both getch() and getche() reads a single character without any buffer. The difference is that getche() echos the character.