Arrays

consider the following array : int X[5][10][4][4], assuming that the right value (of the array) is L:

what is the value of the expression X[-5][-10]?
Last edited on
Undefined.
That looks suspiciously like a homework problem.

-Albatross
Last edited on
I'd be surprised, because the C++ standard says that access elements beyond array boundaries is undefined.
Topic archived. No new replies allowed.