How to print last element of array in c. Pointers store memory addresses.