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()
{
}
คำติชม
https://aka.ms/ContentUserFeedback
เร็วๆ นี้: ตลอดปี 2024 เราจะขจัดปัญหา GitHub เพื่อเป็นกลไกคำติชมสำหรับเนื้อหา และแทนที่ด้วยระบบคำติชมใหม่ สำหรับข้อมูลเพิ่มเติม ให้ดู:ส่งและดูข้อคิดเห็นสำหรับ