#include #include using namespace std; int main() { int a[] {0, 10, 20, 30, 40, 50, 60}; int *p {&a[3]}; //p holds the address of the middle element of the array //In other words, p "points to" the middle element (30). cout << "p points to the value " << *p << ".\n"; cout << "p points to the value " << p[0] << ".\n"; cout << "The next values are " << p[1] << " and " << p[2] << ".\n"; cout << "The previous values are " << p[-2] << " and " << p[-1] << ".\n"; return EXIT_SUCCESS; }