You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These usages of pointer indirection are explicitly allowed in C via WG14 N721, but seemly not allowed in C++.
int* p = &(*((int*)0)); // undefined behavior in C++, well-defined in C (DR076/N721)int a[10];
int* q = &a[10]; // undefined behavior in C++, well-defined in C (DR076/N721)