Search This Blog

Tuesday, 12 March 2013

Escape Sequence


  A Special character Followed by escape character(i.e. ‘\’) is known as escape Sequence  Character. Following table shows various escape Sequences as follows
Escape Sequence

Meaning
\n
New line
\t
Tab
\v
Vertical tab
\b
Back space
\r
Carriage return
\f
Form feed
\a
Bell


NOTE: 1.Escape Sequences should give inside “ \“ within  printf() function.
             Eg: printf (“well come to C \n”);
            2. You can use any number of escape Sequences in printf () function.
             Eg: printf (“\n hai \t Hello \n”);

0 comments:

Post a Comment

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Hostgator Discount Code