It's a very common runtime error message or exception we face when we use array wrongly. Very specifically this exception is thrown to indicate that an array has been accessed with an illegal index (location / position / subscript). The index is either negative or greater than or equal to the size of the array.
See the following code:
int data[]={5,7,18,21,27,15,3};
//show the array elementsfor(int...
Read More