escape sequence

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Aashan
    New Member
    • Aug 2010
    • 1

    #1

    escape sequence

    is \q is an escape sequence in C++ ?
  • newb16
    Contributor
    • Jul 2008
    • 687

    #2
    I asked google, "c escape sequence" (without quotes). It says that no.

    Comment

    • donbock
      Recognized Expert Top Contributor
      • Mar 2008
      • 2427

      #3
      From C: A Reference Manual by Harbison and Steele ...
      If the character following the backslash is neither an octal digit, the letter x, nor one of the defined character escape codes, the result is undefined. (In traditional C, the backslash was ignored.) In Standard C, all lowercase letters following the backslash are reserved for future language extensions. Uppercase letters may be used for implementation-specific extensions.
      Presumably this applies to C++ too.

      Comment

      Working...