Compiler Error C2110
'+' : 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
}
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for