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”);


19:51
Unknown
0 comments:
Post a Comment