adplus-dvertising
frame-decoration

Question

What is the output of C program with arrays?
int main()
{
    int ary[4], size=4;
    printf("%d ", ary[size]);
    return 0;
}

a.

0

b.

1

c.

Random number

d.

Compiler error

Answer: (c).Random number

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 C program with arrays?