0

can someone give me of a list of escape sequences in C..... i would like to know all of them if possible.....
thanks in advance...

5
Contributors
4
Replies
5
Views
11 Years
Discussion Span
Last Post by TkTkorrovi
0

All escape sequences which c89 standard defines -- a single-quote ' can be represented by \', " by \", ? by \?, \ by \\, form feed by \f, new-line by \n, carriage return by \r, horizontal tab by \t, vertical tab by \v, null character by \0, octal integer by \ octal digits, and hexadecimal integer by \x hexadecimal digits; the escape sequences \a and \b are implementation-defined. The bash shell also accepts almost all of these, to be accepted in a string, the string must be in the form $'string', not 'string' or "string".

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.