You are here : cpp0clrscr

clrscr() - 0

C Function to Clear Screen / Console.


Syntax

clrscr();


Example

#include<stdio.h>
#include<conio.h>
void main()
{
   int a,b,c;
   clrscr();	//Clears Screen
   printf("Enter Three Numbers : ");	//Prints message on empty/clean screen
   ...
   ...
   ...
}


Output / Return Value

Returns a clear screen.


Limitations

Available only in 16bit compilers (Like Turbo C/Turbo C++)


Alternatives / See Also

system("cls") - in stdlib.h


Reference