Wednesday 16 November 2016

Escape Sequence in C/C++

Escape Sequence:
.It indicates that printf is supposed to do something out of the ordinary. When encountering a backslash in a string, Escape Sequences plays very vital role in C/C++ language

There are some escape sequence which are given below:
\n                                    Newline. Position the cursor at the beginning of the next line.
 \t                                    Horizontal tab. Move the cursor to the next tab stop. 
 \a                                   Alert. Produces a sound or visible alert without changing the current cursor                                          position.
 \\                                    Backslash. Insert a backslash character in a string.
 \"                                    Double quote. Insert a double-quote character in a string.




2 comments: