In: Computer Science
for C++ pointers:
a. Given int arr [10], *ap = &arr[2]; what is the result of (ap - arr)?
b. Given int val = 10, *x = &val, *y; y = x; *y=100; what is the output of cout << *x << *y;?
c. Given int arr [10], *ap = arr; what element does ap point to after ap +=2; ?