Wednesday, September 18, 2013

ESCAPE SEQUENCE


ESCAPE SEQUENCE
DEFINITION
  • In order to customize output of a program,  C provides a special character set.  Such special characters are known to be Escape Sequences.
  • Escape Sequence                                             Description
    \n                                                                    New line character or terminate the current output line
    \t                                                                            To provide tab space
    \a                                                                           To get Bell sound
    \\                                                                            Single \
    %%                                                                         Single %
    \b                                                                           Backspace moves the cursor to the left one character.
    \v                                                                            Vertical tab

\r                                                                            The return character; returns to the beginning of                                                                                              the current line. 

No comments:

Post a Comment