adplus-dvertising
frame-decoration

Question

What is the output of this program?
void main()
{
      int a[8] = {1,2,3,4,5};
      printf("%d", a[5]);
}

a.

5

b.

6

c.

0

d.

Garbage Value

Posted under C Programming

Answer: (c).0

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?