C | Arrays | Question 14

filter_none

edit
close

play_arrow

link
brightness_4
code

#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;
}

chevron_right


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


Answer: (C)

Explanation:

Quiz of this Question



My Personal Notes arrow_drop_up

Improved By : morsmorde



Article Tags :
Practice Tags :


1


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.