Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 851 Bytes

compiler-warning-level-1-c4129.md

File metadata and controls

28 lines (22 loc) · 851 Bytes
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
C4129
C4129
a4190c64-4bfb-48fd-8e98-52720bc0d878

Compiler Warning (level 1) C4129

'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
}