description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||
---|---|---|---|---|---|---|---|
Learn more about: Compiler Warning (level 1) C4129 |
Compiler Warning (level 1) C4129 |
11/04/2016 |
|
|
a4190c64-4bfb-48fd-8e98-52720bc0d878 |
'character' : unrecognized character escape sequence
The character
following a backslash (\) in a character or string constant is not recognized as a valid escape sequence. The backslash is ignored and not printed. The character following the backslash is printed.
To print a single backslash, specify a double backslash (\\).
The C++ standard, in section 2.13.2 discusses escape sequences.
The following sample generates C4129:
// C4129.cpp
// compile with: /W1
int main() {
char array1[] = "\/709"; // C4129
char array2[] = "\n709"; // OK
}