getch() is used to get a single character from the console. ... Anything being displayed on console will be cleared by clrscr(). getch() is used to read a single byte character from input. It is most frequently used to hold a program waiting until a key is hit.
Difference between while loop and do while loop click here-#learningcwithprogramming
Continue this lesson in the app
Install CourseHive on Android or iOS to keep learning while you move.