What is the difference between getch() and getche() function?

What is the difference between getch() and getche() function?

Senior Developer Asked on February 11, 2017 in C.
Add Comment
1 Answer(s)

getch() : the function is used to accept single character from user, but it has no echo (display) on screen when it is pressed.

getche() : the function is used to accept single character from user, and it has echo (display) on screen when it is pressed.

Senior Developer Answered on February 22, 2017.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.