What is the difference between functions getch() and getche()?
4 years ago
C Programming
Both functions will accept a character input value from the user. When using getch(), the key that was pressed will not appear on the screen, and is automatically captured and assigned to a variable. When using getche(), the key that was pressed by the user will appear on the screen, while at the same time being assigned to a variable.
Sanisha Maharjan
Jan 20, 2022