Number: C2137
Null character definition.
Error analysis:
The reason is that two single quotes are used together without any characters in between. In general, single quotes represent character constants. Single quotes must have, and can only have, one character (when an escape character is used, the character represented by the escape character is treated as a character). Nothing between two single quotes is not allowed.
Case study:
Null character definition.
Error analysis:
The reason is that two single quotes are used together without any characters in between. In general, single quotes represent character constants. Single quotes must have, and can only have, one character (when an escape character is used, the character represented by the escape character is treated as a character). Nothing between two single quotes is not allowed.
Case study:
#include<stdio.h>
int main()
{
const char a='';
printf("%c",a);
return 0;
}
div>
Read More:
- Error c2137 of C language: empty character constant (Fixed)
- error C2057: expected constant expression (Can the size of an array in C language be defined when the program is running?)
- Error of reading character c + +
- The use of Chinese characters in Qt and the solution to the “error C2001: newline in constant” problem
- Error c2059: syntax error: constant solution
- Solve the problem of “error empty block statement no empty” in the console (Vue project)
- Solving syntax error: unexpected character after line continuation character
- Syntax error: unexpected character after line continuation character
- C – error: converting to execution character set:Illegal byte sequence
- Package inputenc Error: Unicode character , (U+FFØC) (inputenc) not set up for use with L aTeX. See
- XML tag has empty body less… (Ctrl+F1) Reports empty tag body. The validation works in XML / JSP
- error: initializer element is not constant [How to Solve]
- Expected unqualified ID before string constant
- error: unclosed character literal (How to Fix)
- Expected unqualified ID before numeric constant
- C language string processing error warning, c4996, sprintf, predicted, c4996, strcpy, c4996, strcat
- Generate template asp.net Cs1010: newline in constant
- Routing Error uninitialized constant TransController
- VS2013 error RC2108: expected numerical dialog constant
- Several methods of deleting all empty lines in text under Linux