What is the use of clrscr and getch | Sololearn: Learn to code for FREE!


What is the use of clrscr and getch


6/13/2017 5:17:01 AM


8 Answers

New Answer


and conio.h is older than the dinosaurs and not recommended at all


sounds like someone is using conio.h cin is standard c++ for getting input from the console. Use it.


clrscr()- to clear the output screen and getch()- for getting an input from user.




it's up to you which one you use..


ohh so getchar is only applicable in conio.h


OK Got it thanks for helping


If getch fetch input from the user then what is the use of cin?