Pointer & Array
Pointers and arrays are very closely linked in C. Hint: Think of array elements arranged in consecutive memory locations. Consider the following: int a[10], x; int *pa; pa = &a[0]; /* pa pointer to address of a[0] */ x = *pa; /* x = contents of pa (a[0] in this case) */ Warning: There is no bound checking of arrays and pointers so you …