Given this code:
int *p, *q; p = (int *) 1000; q = (int *) 2000;
What is q - p and how?
q - p
As p is pointing to an int and so q, q-p will be 1000.