Index – this is a variable that can store the address of any variable of the given type.
Announcement:
char *pC; // address of a character or array element
int *pI; // address of an integer variable
How to assign an address:
int m = 25, *pI;
pI = &m; // address of variable m
Displaying a value through a pointer:
Since the array variable points to the first element of the array,
int A[] = {5 span> , 10}, *pI;
pI = A;
will be similar:
int A[] = {5 span> , 10}, *pI;
pI = &A[0 span>];
to move to the address of the next array element, just do: