Hard
One-past-the-end vs. two-past-the-end pointer arithmetic
Which statement correctly describes the well-defined-ness of forming and using these pointers?
main.cpp
int arr[4] = {10, 20, 30, 40};
int* p_end = arr + 4; // (1) one-past-the-end
int* p_past = arr + 5; // (2) two-past-the-end
bool cmp = (p_end == arr + 4); // (3)
int bad1 = *p_end; // (4)
int bad2 = *p_past; // (5)64 of 117 in C++