What are the escape characters in the C programming language?

Common escape characters used in the C language include:

  1. newline character
  2. tabulation character
  3. carriage return
  4. warning notification
  5. backspace
  6. backslash
  7. single quotation marks.
  8. quotation marks
  9. Null character
  10. vertical tabulation character
  11. new page marker
  12. Question mark
  13. Octal escape character
  14. Hexadecimal escape character represented as \xhh.

These escape characters can be used in strings to represent special characters or control characters.

广告
Closing in 10 seconds
bannerAds