What is the output of the following C code snippet? int y[]={6,5,3,2,1,0};…

What is the output of the following C code snippet? int y[]={6,5,3,2,1,0}; printf("%d\n",5[y]*3);

  1. A.

    Compile time error

  2. B.

    15

  3. C.

    45

  4. D.

    0

Sign up free to check your answer

Sign up free

Explore the full course: C Language

Loading lesson…