Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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
}
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.