New course! Every coder should learn Generative AI!
Try a free lesson0
What is the role of "getch" in c++
c++
3 Answers
+ 9
getch() is literally 'get character'. It pauses the console screen until you press any key.
+ 1
it holds the output screen so you can see your output
+ 1
getch() is to get a character