Explaining :- clrscr (); and getch(); in C
clrscr (); and getch();
clrscr(); and getch(); requires the header file conio.h i.e #include <conio.h>
clrscr(); :- This is used for clearing the output screen i.e console
suppose you run a program, alter it and run it again you may find that the previous output is still stuck there itself, at this time clrscr(); would clean the previous screen.
One more thing to remember always use clrscr(); after the declaration like
getch(); :- getch is used to hold the screen in simple language, if u don't write this the screen
will just flash and go away....