Escape Sequence of C Language

What is Escape Sequence of C Language

Ans  An escape sequence in C programming language is a sequence of characters. Its doesn’t represent  itself when used inside string literal or characters. Its is composed of two or more character of two or more character starting with backslash \.For example:\n represents new line.

S.No.

Escape Sequences

Meaning

1

\a

Alarm or Beep

2

\b

Backspace

3

\f

From Feed 

4

\n

New line

5

\r

Carriage Return 

6

\t

Tab(Horizontal)

7

\v

Vertical Tab

8

\\

Backslash

9

\’

Single Quote

10

\”

Double Quote

11

\?

Question Mark

12

\nnn

Octal Number

13

\xhh

Hexadecimal Number

14

\0

Null

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *