0
What is use of getch()
5 Answers
+ 3
getch() gets a character from the screen actually. but in most programs, at the end we write it to hold the output screen for a moment until user presses Any button. otherwise, output screen would have be displayed and suddenly get closed because execution got completed. to hold the output screen until user clicks anything, it's used
+ 1
getch stands for get character and it's mainly used for pausing the console screen from exiting by itself. you can also use if to get a single key press from the user.
0
thanks bro
0
you can follow me and ask me any question you want and I will try to answer it.
0
getch() is a single character reading function.
it holds the o/p console till a character is I/p through keyboard. it does not echo character back on screen .however it takes reads and stores the I/p but doesn't display