Why do we use clrscr() in arrays in c? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 14

Why do we use clrscr() in arrays in c?

C

25th Feb 2019, 6:04 PM
Sharon Shelton
Sharon Shelton - avatar
2 Answers
+ 10
clrscr() is function included in <conio.h> (header file). When clrscr() function is called in a program everything currently displayed in the console(output of previous programs, output of current program until the invocation of clrscr(), user inputs, error messages… everything) screen is deleted.
25th Feb 2019, 6:30 PM
Ashutosh Sharma
Ashutosh Sharma - avatar
+ 1
clear the screen
2nd Sep 2020, 11:50 AM
T. Siva Kiran
T. Siva Kiran - avatar