Skip to content
Related Articles

Related Articles

C | Arrays | Question 14
  • Difficulty Level : Basic
  • Last Updated : 18 Jan, 2014




#include <stdio.h>
int main()
{
    char p;
    char buf[10] = {1, 2, 3, 4, 5, 6, 9, 8};
    p = (buf + 1)[5];
    printf("%d\n", p);
    return 0;
}

(A) 5
(B) 6
(C) 9
(D) None of the above


Answer: (C)

Explanation:

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 :