Consider this thread What is EOF in the C programming language?
The answer was that EOF
(Ctrl-D) results in that getchar
returns -1
- My question is what does Ctrl-J and Ctrl-M represent in c on OSX and why does
getchar
return 10 for both using the same code as in link above? - What other shortcuts (Ctrl-somthing / Cmd-something) results in that
getchar
turns a static predefined number?