This documentation is archived and is not being maintained.

Compiler Error C2110

Error Message

'+' : cannot add two pointers

An attempt was made to add two pointer values using the plus ( + ) operator.

The following sample generates C2110:

// C2110.cpp
int main() {
   int a = 0;
   int *pa;
   int *pb;
   a = pa + pb;   // C2110
}
Show: