What are the escape characters in the C programming language?
Common escape characters in the C language include:
- \n: new line character
- Tab: Tabulation character
- \r: carriage return
- \b is the backspace character.
- \f: Page break.
- Backslash
- ‘ : “
- – quotation marks
- 0: Null character (end marker for strings)
- \xhh: A hexadecimal character, where hh represents a two-digit hexadecimal number.
- \ooo: Octal character, where ooo is a three-digit octal number.
These escape characters can be used in a string to represent certain special characters. For example, using \n can insert a newline character in the string. Using \ can insert a backslash in the string.