SlideShare a Scribd company logo
1 of 6
Download to read offline
वन

व

नव
.

gate

व

न

ग

ग

, groundsman, security person,
VIP ज

ग

व

न C

ग

.

व

न आ
व
न व

व

ज .
ज

व

ग

.

व

व

escape sequence

आ
ग .

ज

.

definition

“Escape from the normal meaning of following character after slash (  )”
आ .
न

ज

आ

ग आ

meaning ज आ

न

नव

(/)

जन ज .
नज

.

/n

ज

ग

व

न व

sequence

()न

व

back slash (  )
back slash व

printf statement

ग

ज

…
वज forward slash ( / ) व
.

न escape

- नव
आ

व
फ statement
slash

ग

ग

न cursor next
न treat
व

न

n व

ज आ
न

.आ
(

ज

न
cursor

.

alphabet आ .

न treat

न

व tज

treatment
ग

गआ

t

ग .

output व
व

ज a to z
n

tab न न व

escape sequence

C language

)
आ

न, व

न

व n

व input
ज

न escape sequences आ

cursor

.

.

n आ

t

न व

व

.

ज न escape sequence आ
.

escape sequence

न

ASCII standard न

decimal आ

Hex values

.ज

Bell escape sequence (a)

फ
न

व

back slash

. Machine booting

नa
व

व
ग

न ज

न
alert
.

न aव

based

.

आ .
व

न व

user

input alert

. व

फ

a

न

व

व

.

b

dos

escape

Back Space Escape Sequence (b)

b character

back space

न

sequence
व

आ .

फ

space backward direction न
ज b

sequence

display device

व

ग

ग

न

व

ज .

behavior unspecified
output print

ग

.
न ज cursor

situations

line
escape

गआ
आ .

Carriage Return Escape Sequence (r)

Carriage return

ज r

line व cursor
ज

function
आ

keyboard व

Home key

आ .

आ . Device reset

Type Writer
Cartridge return

New Line

जव

आ .

line ( n ) control character आ . Computers
Carriage return

cursor न

व

ग

आ .

r (CR) आ

home key
line

ज

function आ व .
व

Cartridge Return व न

. Carriage return
line feed (LF)

न न व
Line feed आ

combination

Characters bold/strike out/underscore
.

ज new
व

r व

व

terminal emulator

…!

escape sequence (line
न

ज

व

व

.

नज

cursor न

)आ

override

ज

.

Back slash Escape Sequence (  )
File handling
path व

आ

file open

file आ

न

file
ज file

.

path

व

ग

ज

न operating system

path

c:newprogramsrecursion fibonacci.c
आ .आ

file open

fp = fopen(“c:newprogramsrecursion fibonacci.c”, “r”);
statement

file not found

वज OS ewprograms
, fibonacci.c
sequence

न treat

directory
वज ibonacci.c
.

message

, recursion
file

.

वज ecursion

newprograms
sub directory
n, r, f

नआ

escape sequence

ग

व escape
न

व
व

string

back slash escape sequence व

slash

गन ज

treat

)

back slash
आ

treat

आ
…

न

OS

escape sequence

ग
व

न

back
(ज

normally

न ज file open function

fp = fopen(“c:newprogramsrecursion fibonacci.c”, “r”);
OS

ज

string

c:newprogramsrecursion fibonacci.c
ज

.

Double Quotes and Single Quote Escape Sequence ( “ ), ( ‘ )
Interview

“Welcome to C Programming”
ग

.

न

व

print

व
printf(“Welcome to C Programmingn”);

न

.

output

double quotes

pair

व आ .आ

ज

printf(“”Welcome to C Programming”n”);
modify
व

न
escape sequence व

....!
न व

output

.

फ

modify

.

printf(“”Welcome to C Programming”n”);
Just type and run interesting program to know the relation between escape sequences and
corresponding Hex values
Here is one more small animation in C just by using r escape sequence.

More Related Content

Viewers also liked (12)

Funcion scanf
Funcion scanfFuncion scanf
Funcion scanf
 
Basic Input and Output
Basic Input and OutputBasic Input and Output
Basic Input and Output
 
C++11
C++11C++11
C++11
 
C tokens
C tokensC tokens
C tokens
 
C++ idioms by example (Nov 2008)
C++ idioms by example (Nov 2008)C++ idioms by example (Nov 2008)
C++ idioms by example (Nov 2008)
 
User defined functions in C
User defined functions in CUser defined functions in C
User defined functions in C
 
Solid C++ by Example
Solid C++ by ExampleSolid C++ by Example
Solid C++ by Example
 
Insecure coding in C (and C++)
Insecure coding in C (and C++)Insecure coding in C (and C++)
Insecure coding in C (and C++)
 
INTRODUCTION TO C PROGRAMMING
INTRODUCTION TO C PROGRAMMINGINTRODUCTION TO C PROGRAMMING
INTRODUCTION TO C PROGRAMMING
 
TDD in C - Recently Used List Kata
TDD in C - Recently Used List KataTDD in C - Recently Used List Kata
TDD in C - Recently Used List Kata
 
C –imp points
C –imp pointsC –imp points
C –imp points
 
Deep C
Deep CDeep C
Deep C
 

More from Innovative

Functions in c
Functions in cFunctions in c
Functions in cInnovative
 
Addition of binary numbers
Addition of binary numbersAddition of binary numbers
Addition of binary numbersInnovative
 
Relational Operators in C Language
Relational Operators in C LanguageRelational Operators in C Language
Relational Operators in C LanguageInnovative
 
Break and continue statement in C
Break and continue statement in CBreak and continue statement in C
Break and continue statement in CInnovative
 
If control structure in c lnaguage
If control structure in c lnaguageIf control structure in c lnaguage
If control structure in c lnaguageInnovative
 
Pointers in C basics 01
Pointers in C basics 01Pointers in C basics 01
Pointers in C basics 01Innovative
 
Bitwise AND operator in c
Bitwise AND operator in cBitwise AND operator in c
Bitwise AND operator in cInnovative
 

More from Innovative (7)

Functions in c
Functions in cFunctions in c
Functions in c
 
Addition of binary numbers
Addition of binary numbersAddition of binary numbers
Addition of binary numbers
 
Relational Operators in C Language
Relational Operators in C LanguageRelational Operators in C Language
Relational Operators in C Language
 
Break and continue statement in C
Break and continue statement in CBreak and continue statement in C
Break and continue statement in C
 
If control structure in c lnaguage
If control structure in c lnaguageIf control structure in c lnaguage
If control structure in c lnaguage
 
Pointers in C basics 01
Pointers in C basics 01Pointers in C basics 01
Pointers in C basics 01
 
Bitwise AND operator in c
Bitwise AND operator in cBitwise AND operator in c
Bitwise AND operator in c
 

Escape sequence in c part 1

  • 1. वन व नव . gate व न ग ग , groundsman, security person, VIP ज ग व न C ग . व न आ व न व व ज . ज व ग . व व escape sequence आ ग . ज . definition “Escape from the normal meaning of following character after slash ( )” आ . न ज आ ग आ meaning ज आ न नव (/) जन ज . नज . /n ज ग व न व sequence ()न व back slash ( ) back slash व printf statement ग ज … वज forward slash ( / ) व . न escape - नव आ व
  • 2. फ statement slash ग ग न cursor next न treat व न n व ज आ न .आ ( ज न cursor . alphabet आ . न treat न व tज treatment ग गआ t ग . output व व ज a to z n tab न न व escape sequence C language ) आ न, व न व n व input ज न escape sequences आ cursor . . n आ t न व व . ज न escape sequence आ . escape sequence न ASCII standard न decimal आ Hex values .ज Bell escape sequence (a) फ न व back slash . Machine booting नa व व ग न ज न alert
  • 3. . न aव based . आ . व न व user input alert . व फ a न व व . b dos escape Back Space Escape Sequence (b) b character back space न sequence व आ . फ space backward direction न ज b sequence display device व ग ग न व ज . behavior unspecified output print ग . न ज cursor situations line escape गआ आ . Carriage Return Escape Sequence (r) Carriage return ज r line व cursor ज function आ keyboard व Home key आ . आ . Device reset Type Writer Cartridge return New Line जव आ . line ( n ) control character आ . Computers Carriage return cursor न व ग आ . r (CR) आ home key line ज function आ व . व Cartridge Return व न . Carriage return line feed (LF) न न व Line feed आ combination Characters bold/strike out/underscore . ज new
  • 4. व r व व terminal emulator …! escape sequence (line न ज व व . नज cursor न )आ override ज . Back slash Escape Sequence ( ) File handling path व आ file open file आ न file ज file . path व ग ज न operating system path c:newprogramsrecursion fibonacci.c आ .आ file open fp = fopen(“c:newprogramsrecursion fibonacci.c”, “r”); statement file not found वज OS ewprograms , fibonacci.c sequence न treat directory वज ibonacci.c . message , recursion file . वज ecursion newprograms sub directory n, r, f नआ escape sequence ग व escape न व
  • 5. व string back slash escape sequence व slash गन ज treat ) back slash आ treat आ … न OS escape sequence ग व न back (ज normally न ज file open function fp = fopen(“c:newprogramsrecursion fibonacci.c”, “r”); OS ज string c:newprogramsrecursion fibonacci.c ज . Double Quotes and Single Quote Escape Sequence ( “ ), ( ‘ ) Interview “Welcome to C Programming” ग . न व print व printf(“Welcome to C Programmingn”); न . output double quotes pair व आ .आ ज printf(“”Welcome to C Programming”n”); modify व न escape sequence व ....! न व output . फ modify . printf(“”Welcome to C Programming”n”); Just type and run interesting program to know the relation between escape sequences and corresponding Hex values
  • 6. Here is one more small animation in C just by using r escape sequence.