int arr [ ] = {0, 1, 2, 3, 4};
int i = 1, *ptr;
ptr = arr + 2;
arrange the following printf statements in the
increasing order of their output.
(A) printf ("%d", ptr[i]);
(B) printf ("%d", ptr[i + 1]);
(C) printf ("%d", ptr[- i]);
(D) printf ("%d", ptr[- i + 1]);
Choose the correct answer from the options given below:
Correct Answer: (b) (C), (D), (A), (B)
Solution:Let's analyze the code segment.
