New course! Every coder should learn Generative AI!
Try a free lesson+ 13
getch() reads a single byte character from input. getch() is a way to get a user inputted character. If you use Turbo C++ or Dev C++, then it is used to hold the output console for sometime till you enter something for checking the output.
Hope this helps !!