Escape Sequences In C Programming Language

Escape Sequences in c programming language


/* program to see various
escape sequence
 */

 #include<stdio.h>
 #include<conio.h>
 
 int main ()

 {
  clrscr();
 // printf("HI every one .... \n   how r you ?");

 //printf("Hi this is\b deepak garg");
   //printf("my college name \r is sddiet");
   //printf("I had 80 percent \t degree ");
   //printf("depak \\garg ");
   printf("deepak \agarg");
      getch();
      return 0;
 }
 
 

Output

BackSlash n : \n

backslash-n 1-backslash-n-output

BackSlash b : \b

backslash-b backslash-b-output

Form feed : \f

3-form-feed form-feed-output

Carrige return: \r

carriage-return 4-carriage-return-output

tab : \t

tab-sequence tab-sequence-output

backslash:\\

6-double-backslash 6-double-backslash-output

beep : /a

7-beep



Facebook Likes

Youtube