+ 1
Why use getch () in program?
c program
3 Réponses
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.