ESCAPE CHARACTERS IN C-LANGUAGE================================
( TO WATCH ON YOUTUBE, CLICK HERE .)
\t --> Tab (8 horizontal space at a time)
\n --> New line character
\r --> Carriage Return
\a --> Alarm or beep
\b --> Backspace
\v --> Vertical tab
\0 --> Null
EXAMPLE:-
#include <stdio.h>
#include <conio.h>
void main()
{
clrscr();//clears screen
printf("THIS\nIS\tTHE\rESCAPE\tSEQUENCE\nEXAMPLE \b");
getch();
}
OUTPUT:-
Without \b, the cursor positions after the letter 'E'.
Regards,
ITK
Comments
Post a Comment