+ 10

What is the difference between getch and getche functions?

1st Apr 2018, 5:03 PM
Rishu Kumar
Rishu Kumar - avatar
2 ответов
+ 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.
1st Apr 2018, 6:13 PM
Manorama
Manorama - avatar
+ 5
Both getch() and getche() reads a single character without any buffer. The difference is that getche() echos the character.
2nd Apr 2018, 12:22 AM
Hatsy Rei
Hatsy Rei - avatar