The Escape Sequence Using For in c Language. Escape sequence Mostly Used in Printf() Operation in c program. We check the operation below also. But, 1st Learn Why Use Escape Sequence?
Different Type of Outputs Represents in c program.
\n Represents a newline character
\r Represents a carriage return
\b Represents a backspace
\f Represents a from-feed character
\t Represents a horizontal tab
\v Represents a vertical tab
\a Inserts a bell (alert) Character or ( Beep Sound )
\? Inserts a question mark Symbol ( ? )
\" Inserts a Double Quote ( " )
\' Inserts a single Quote ( ' )
\\ Inserts a Backslash ( \ )
Trigraph Sequences
In General Every One Ca Use questions mark directly in string. The \? escape sequence only exists because there are nine special sequence of characters called Trigraph Sequence. That are Three Characters Sequence for Representing each of the characters #, [, ], \, ^, ~, /, {, }.
??= #
??( [
??) ]
??/ \
??< {
??> }
??' ^
??! |
??- ~
Example :
Printf(" ??<Welcome Alltechprograms??>");
Output:
{ Welcome Alltechprograms }
Different Type of Outputs Represents in c program.
\n Represents a newline character
\r Represents a carriage return
\b Represents a backspace
\f Represents a from-feed character
\t Represents a horizontal tab
\v Represents a vertical tab
\a Inserts a bell (alert) Character or ( Beep Sound )
\? Inserts a question mark Symbol ( ? )
\" Inserts a Double Quote ( " )
\' Inserts a single Quote ( ' )
\\ Inserts a Backslash ( \ )
Trigraph Sequences
In General Every One Ca Use questions mark directly in string. The \? escape sequence only exists because there are nine special sequence of characters called Trigraph Sequence. That are Three Characters Sequence for Representing each of the characters #, [, ], \, ^, ~, /, {, }.
??= #
??( [
??) ]
??/ \
??< {
??> }
??' ^
??! |
??- ~
Example :
Printf(" ??<Welcome Alltechprograms??>");
Output:
{ Welcome Alltechprograms }