c++ when an array is a pointer
So assuming you have bit understanding on pointers in C++, let us start: An array name is a constant pointer to the first element of the array. balance is a pointer to &balance[0], which is the address of the first element of the array balance. It is legal to use array names as constant pointers, and vice versa.