Compiler Error C2137
empty character constant
The empty character constant ( ' ' ) is not permitted.
The following sample generates C2137:
// C2137.cpp
int main() {
char c = ''; // C2137
char d = ' '; // OK
}
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
empty character constant
The empty character constant ( ' ' ) is not permitted.
The following sample generates C2137:
// C2137.cpp
int main() {
char c = ''; // C2137
char d = ' '; // OK
}