What is the exact difference between the getch and getchar functions?
getch
getchar
getchar() is a standard function that gets a character from the stdin.
getchar()
getch() is non-standard. It gets a character from the keyboard (which may be different from stdin) and does not echo it.
getch()
2.1m questions
2.1m answers
60 comments
57.0k users