int arr[] = {1, 2, 3, 4, 5}; int* ptr = arr; // Increment the pointer and access the second element ptr++; cout << *ptr << endl; // Output: 2 // Decrement the pointer and modify the third element ptr--; *(ptr+2) = 6; cout << arr[2] << endl; // Output: 6In this example, we first initialize an array `arr` with five elements, and then create a pointer `ptr` that points to the first element. We then increment the pointer once, so that it now points to the second element, and output its value. Finally, we decrement the pointer and use it to modify the value of the third element. The package library for the C++ array pointer add function is `#include