☰
  • 首页
  • 规则分类
  • 项目介绍
search
•••

使用非标准转义字符

C++-Undefined-Behavior-7
目录 › next › previous

标准转义字符:

\a          // Alert
\b          // Backspace
\f          // Formfeed page break
\n          // New line
\r          // Carriage return
\t          // Horizontal tab
\v          // Vertical tab
\\          // Backslash
\?          // Question mark
\'          // Single quotation mark
\"          // Double quotation mark
\0          // Null character
\ddd        // Any character, ‘d’ is an octal number
\xhh        // Any character, ‘h’ is a hex number

反斜杠后如果出现其他形式的字符或字符序列会导致未定义的行为。

依据

ISO/IEC 14882:2003 2.13.2(3)-undefined ISO/IEC 14882:2011 2.14.3(3)-implementation

规则

ID_literal_nonStandardEsc
Copyright©2024 360 Security Technology Inc., Licensed under the Apache-2.0 license.