Compiler Error C2100
illegal indirection
Indirection operator ( *
) is applied to a nonpointer value.
The following sample generates C2100:
// C2100.cpp
int main() {
int r = 0, *s = 0;
s = &r;
*r = 200; // C2100
*s = 200; // OK
}
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
illegal indirection
Indirection operator ( *
) is applied to a nonpointer value.
The following sample generates C2100:
// C2100.cpp
int main() {
int r = 0, *s = 0;
s = &r;
*r = 200; // C2100
*s = 200; // OK
}