Skip to content
Related Articles

Related Articles

C | Arrays | Question 13
  • Difficulty Level : Medium
  • Last Updated : 18 Jan, 2014

int main()
    int a[10][20][30] = {0};
    a[5][2][1] = 2;
    return 0;

Which of the following will print the value 2 for the above code?
(A) printf(“%d”,*(((a+5)+2)+1));
(B) printf(“%d”,***((a+5)+2)+1);
(C) printf(“%d”,*(*(*(a+5)+2)+1));
(D) None of these

Answer: (C)


Quiz of this Question

Want to learn from the best curated videos and practice problems, check out the C Foundation Course for Basic to Advanced C.
My Personal Notes arrow_drop_up
Recommended Articles
Page :