Arrays and Pointers
Sat, 09/03/2013 - 11:58pmArrays and Pointers
As I mentioned earlier in this hour, pointers and arrays have a close relationship in C. In fact, you can make a pointer that refers to the first element of an array by simply assigning the array name to the pointer variable. If an array is referenced by a pointer, the elements in the array can be accessed with the help of the pointer.
For instance, the following statements declare a pointer and an array, and assign the address of the first element to the pointer variable:
