https://docs.vultr.com/cpp/cpp/examples/cpp/examples/access-elements-of-an-array-using-pointer
C++ pointer to array element In C++, you can use a pointer to access an array element by pointing to the array's first element and using pointer arithmetic. For example, int arr[] = {10, 20, 30}; int* ptr = arr; std::cout << *(ptr + 1); prints the second element (20). This technique highlights C++'s efficiency in pointer manipulation, providing low-level access to array elements for advanced programming tasks.