How to include special characters in String literals?

We can include the following special characters in String literals.

  • \0 (null character)
  • \”  (double quotation)
  • \’  (single quotation)
  • \t  (horizontal tab)
  • \r  (carriage return)
  • \n (linefeed)
  • \\ (backlash)

Leave a Reply