Pointer math.
When you add an integer to an address, it doesn't do straight math, it will move that many address forward (or
backward). pointer+3 is like saying 'go three houses down the block'. That's why pointers haveto know what
they are pointing to, because moving 3 integers is a different amount just like moving three houses is different
than moving 3 offices down the hall.
int *ptr;
int *ptr2;
ptr2 = ptr + 3;
In the above example, ptr2 will shift 3 places from ptr, skipping over 2 memory locations.
ptr skipped skipped ptr2
Since the name of an array if the address where it is in memory, it's also the address of the first number.
Deference the address and use pointer math to find the last number. There are 100 numbers in the array.
Your assignment is to write a function that prints the last number of the array. You must use
the prototype provided and pointer math to receive credit.
You may not use the [] symbols, you must use the * symbol!!!