Why use getch () in program? | Sololearn: Learn to code for FREE!

+1

Why use getch () in program?

c program

c

2/13/2017 4:25:14 PM

Ram Naresh Arya

3 Answers

New Answer

0

getch() is used to get a character from console but does not echo to the screen.

0

getch() 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.