Equivalence between Array Indexing and Pointer Dereferencing
If p is either and array name or pointer, then the following two forms are equivalent:
Thus, we can use pointer as if it were an array, or array as if it were pointer. The only difference is that array name is a constant, while pointer is a variable.