3 Answers
New Answergetch() is used to fetch the character entered on keyboard, it does not display what we typed. During the runtime it runs and shows the output only for a fraction of seconds, to keep the output screen on console getch() function literally makes the output screen to wait until any key is pressed. So with it you can see the output.
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message