On string literals & character constants.

Home Forums C-programming.. On string literals & character constants.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #2340 Reply
    Humble
    Keymaster

    The backslash \ is an escape character, giving special meaning to the character following it in character constants and string literals. If you really need backslash as a character you need to double it and use inside string literals.

    At the same time, understand that the preprocessor #include directives are not string literals, so dont worry about backslashes there 🙂

Viewing 1 post (of 1 total)
Reply To: On string literals & character constants.
Your information: