Skip to content

Latest commit

 

History

History
35 lines (29 loc) · 739 Bytes

compiler-warning-level-4-c4125.md

File metadata and controls

35 lines (29 loc) · 739 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Warning (level 4) C4125
Compiler Warning (level 4) C4125
11/04/2016
C4125
C4125
a081d1f4-0789-4915-91df-7ff0b28ca245

Compiler Warning (level 4) C4125

decimal digit terminates octal escape sequence

The compiler evaluates the octal number without the decimal digit and assumes the decimal digit is a character.

Example

// C4125a.cpp
// compile with: /W4
char array1[] = "\709"; // C4125
int main()
{
}

If the digit 9 is intended as a character, correct the example as follows:

// C4125b.cpp
// compile with: /W4
char array[] = "\0709";  // C4125 String containing "89"
int main()
{
}