Why do we write getch () in turbo c?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Why do we write getch () in turbo c??


18th Apr 2020, 6:13 AM
Pascal Gitau
Pascal Gitau - avatar
2 Answers
+ 4
It is used to get user input at the same time it holds the screen.
18th Apr 2020, 7:35 AM
xkcd - avatar
+ 3
Generally it is used to let program pause for a moment till the time user don't press a button so that he/she can see the output properly. Otherwise programm will execute everything at once and user will have no idea what just happened.
18th Apr 2020, 6:19 AM
Arsenic - avatar