i have two dimensional array in C++ like this :
int array[2][5] = {
{1,2,3,4,5},
{6,7,8,9,10}
};
when i access the index of array[0][4] , of course the result value will be 5. But i still confused when i tried access index of array like this array[1][-1], the result value is 5 too.
Anyone can explain this? thank you