Special characters used to
modify the format of the output on screen are called escape sequence. It use
escape character ( \ ) back slash for this purpose with characters e.g
\n for new line, \t for tab, \a
for sound and \b for back space etc.
Example-1:
#include<stdio.h>
#include<conio.h>
void main ()
{
clrscr();
printf("Computer");
printf("\n Science");
getch();
}
Output-1:
Computer
Science
Example-2:
#include<stdio.h>
#include<conio.h>
void main ()
{
clrscr();
printf("Computer \t
Science");
getch();
}
Output-2:
Computer Science
No comments:
Post a Comment