Right Click to Search

Wednesday, January 27, 2025

clrscr function >> conio.h Header file >> Library Functions in C Programming




clrscr function >> conio.h Header file >> Library Functions in C Programming

What it does :
  1. clears window screen in text mode
  2. Place the cursor at Position upper left hand corner (1,1)
  3. Header File : conio.h 
void clrscr(void);

Live Examples :

  #include"stdio.h"
  #include"conio.h"
 int main(void)
 {
    int i;
    // Prints 20 numbers 
    for (i = 0; i < 20; i++)
       printf("%d\n", i);
    printf("\r\nPress any key to clear screen");
    getch();
    clrscr();  // Clears the screen
    printf("The screen has been cleared!");
    getch();
 }



Tags / Keywords : | ,

Stumble
Delicious
Technorati
Twitter
Facebook

0 Comments:

Post a Comment

Your Feedback :This is Growing Site and Your Feedback is important for Us to improve the Site performance & Quality of Content.Feel Free to contact and Please Provide Name & Contact Email

 

Learn C Programming Copyright © 2010 LKart Theme is Designed by Lasantha, Free Blogger Templates