adplus-dvertising
frame-decoration

Question

What happens when you try to access an Array variable outside its Size?

a.

Compiler error is thrown

b.

0 value will be returned

c.

1 value will be returned

d.

Some garbage value will be returned.

Answer: (d).Some garbage value will be returned.

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What happens when you try to access an Array variable outside its Size?