R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which type of exception occurs when accessing an index outside an array?

  • (A) NullReferenceException
  • (B) ArgumentException
  • (C) IndexOutOfRangeException
  • (D) InvalidOperationException

Explanation by: Ram Sharma
`IndexOutOfRangeException` occurs when accessing invalid indices in arrays.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.