Compiler Error C2120
'void' illegal with all types
The void
type is used in a declaration with another type.
The following sample generates C2120:
// C2120.cpp
int main() {
void int i; // C2120
int j; // OK
}
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
'void' illegal with all types
The void
type is used in a declaration with another type.
The following sample generates C2120:
// C2120.cpp
int main() {
void int i; // C2120
int j; // OK
}