#include #include using namespace std; int main() { int a[] { 0, 10, 20, 30, 40 }; const size_t n {size(a)}; //the number of elements in the array int *p {&a[0]}; //address of 1st element; can say int *p {a}; cout << "The first int in the array is at " << p << "\n"; cout << "The next int in the array is at " << p+1 << "\n"; cout << "The next int in the array is at " << p+2 << "\n"; cout << "The next int in the array is at " << p+3 << "\n"; cout << "The last int in the array is at " << p+n-1 << "\n\n"; //The name of the array means &a[0]. cout << "The first int in the array is at " << a << "\n"; cout << "The next int in the array is at " << a+1 << "\n"; cout << "The next int in the array is at " << a+2 << "\n"; cout << "The next int in the array is at " << a+3 << "\n"; cout << "The last int in the array is at " << a+n-1 << "\n"; return EXIT_SUCCESS; }