Pointer Homework Assignment CIT 145
Since there were no good pointer homeworks in the book, I have created the following homework for chapter 8.
Create an array of 10 ints. Create an array of 10 pointers to ints. Initialize the array of ints. Make the pointer array point to the int array on a one-to-one basis. For example:
ptrarr[i] = &intarr[i];
Make a function that prints out (via the pointer array) the addresses of the int variables (they should be contiguous since they are in an array) and the values contained in the addresses.