Professional Documents
Culture Documents
Lecture 6
Lecture 6
02
C Language
LECTURE 6
04
Today’s Agenda
03
Types of Escape Sequence
Using the Function getch()
What is getch() ?
1. \n :
2. \t :
3. \r :
4. \b :
1. This program will generate a beep sound after displaying Hello and
before displaying User.
2. The duration of this sound will be for 1 sec, if we want to increase this
duration we must use \a twice or thrice.
Types of Escape Sequences
For Example :
User has given wrong password and we want to alert the user about it.
Types of Escape Sequences
Thank you