Carriage Return

Sunday, 28 August 2011


#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
printf("First Line\n");
printf("Second Line\r");
getch();
}


OUTPUT:

First Line
Second Line
/*Check the cursor position*/

No comments:

Post a Comment

 

Blogger news

Blogroll

Enter your email address:

Delivered by FeedBurner

Total Pageviews

Followers

Most Reading