Professional Documents
Culture Documents
C D1 (Escape Sequences and Convergent Characters)
C D1 (Escape Sequences and Convergent Characters)
#include<stdio.h>
#include<conio.h>
void main ()
{
clrscr ();
printf (“Hello\tworld”);
getch ()
}
Hello world
#include<stdio.h>
#include<conio.h>
void main ()
{
clrscr ();
printf (“Hello\aworld”);
getch ();
}
#include<stdio.h>
#include<conio.h>
void main ()
{
clrscr ();
printf (“Hello\b\bworld”);
getch ();
}
Helworld
#include<stdio.h>
#include<conio.h>
void main ()
{
clrscr ();
printf (“Hello\”world”);
getch ();
}
Hello”world
#include<stdio.h>
#include<conio.h>
void main ()
{
clrscr ();
printf (“Hello\ world”);
getch ();
}
Hello world
#include<stdio.h>
#include<conio.h>
void main ()
{
clrscr ();
printf (“Hello\\ world”);
getch ();
}
Hello\world
#include<stdio.h>
#include<conio.h>
void main ()
{
clrscr ();
int a,b,c;
a=10
b=20
c=a+b;
printf (“%d”,c);
getch ();
}
30
#include<stdio.h>
#include<conio.h>
void main ()
{
clrscr ();
int a,b,c;
a=10
b=20
c=a+b;
printf (“the value of c is %d”,c);
getch ();
}
the value of c is 30