Most viewed

3 Dec 2011

C PROGRAM TO CLEAR SCREEN WITH OUT USING clrscr() FUCTION


Author shahabaz:

This program is very simple and easy, you all might be thinking how could I do such thing with out using a clrscr(); function. (NOTE: Am talking for turbo c editor as well if this code does not wotrk on other edit please alter it). Lets have the code.



#include<stdio.h>
int main(){
int i,j;
   for(i=0;i<27;i++){
     printf("\n");
     for(j=0;j<80;j++)
       printf(" ");
      }
 gotoxy(1,1);
return 0;
}



Be sure with the code while editing

4 comments:

  1. Nice da..but by default thy gave clrscr() fr tis..I recomment to use clrscr() bcz it wont take tym to compile...

    ReplyDelete
  2. Thanks for the comment raja, I know it ill be easy to use clrscr(); am just saying you how that function works internally :).

    KEEP COMMENTNG AND SHARING

    ReplyDelete
  3. let me know why you have taken i=27 & j=80

    ReplyDelete
  4. can you do this by pointers?

    ReplyDelete

Confused? Feel free to ask

Your feedback is always appreciated. I will try to reply to your queries as soon as time allows.

Note:
Please do not spam Spam comments will be deleted immediately upon my review.

 

Based on your view




You have to try this

This is trending now #