By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,327 Members | 2,661 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,327 IT Pros & Developers. It's quick & easy.

escape sequence

P: 1
is \q is an escape sequence in C++ ?
Aug 30 '10 #1
Share this Question
Share on Google+
2 Replies


100+
P: 687
I asked google, "c escape sequence" (without quotes). It says that no.
Aug 30 '10 #2

Expert 100+
P: 2,398
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.
Aug 30 '10 #3

Post your reply

Sign in to post your reply or Sign up for a free account.