0

What is use of getch()

7th Dec 2016, 3:52 AM
TheRed
TheRed - avatar
5 Respuestas
+ 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
7th Dec 2016, 4:05 AM
P Sandesh Baliga
P Sandesh Baliga - avatar
+ 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.
7th Dec 2016, 4:36 AM
milk way
milk way - avatar
0
thanks bro
7th Dec 2016, 4:12 AM
TheRed
TheRed - avatar
0
you can follow me and ask me any question you want and I will try to answer it.
7th Dec 2016, 4:39 AM
milk way
milk way - avatar
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
7th Dec 2016, 5:38 AM
Rajiv Puranik
Rajiv Puranik - avatar