Question PRG-C-0062
HardWhat is the output of this program?
#include <stdio.h>
int main() {
int a[] = {1, 2, 3, 4, 5};
int *p = a, *q = &a[4];
printf("%td %d %d", q - p, *(p + 3), *q - *p);
return 0;
}
- A.
16 4 4
- B.
5 4 4
- C.
Sign up free to see the answer and a step-by-step explanation.