Escape Sequences (or) White Spaces

To manipulate the output we use Escape Sequences (or) White Spaces.
\n:   new line     
\t:   horizontal tab
\a:   bell
\b:   back space   
\':   single quote
\":   double quote 
\0:   null character
\r:   carriage return
\f:   form feed
\\:   back slash

Escape Sequences Program: 1



output 1 

Escape Sequences Program: 2


output 2

GOTOXY Program: 

gotoxy function places a cursor at a desired location on screen. i.e. we can change cursor position using gotoxy function. 

syntax:
gotoxy(x,y);


output 3

No comments:

Post a Comment