adplus-dvertising
frame-decoration

Question

What is the output of this program?
#include <stdio.h>
int main()
{
    int a[1]={100};
    printf("%d", 0[a]);
    return 0;
}

a.

100

b.

0

c.

Garbage Value

d.

Compilation Error

Answer: (a).100

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of this program?