What is the exact difference between the getch
and getchar
functions?
getchar()
is a standard function that gets a character from the stdin.
getch()
is non-standard. It gets a character from the keyboard (which may be different from stdin) and does not echo it.