Ad
  • Custom User Avatar

    You have pre-defined revarray to be a 2-D array consisting of only 4 elements (sub-arrays). Upon assigining the 5th one, there is no memory assigned to the array object to store the value, hence the error.

    Hint: do not pre-define the array and use another technique to add elements into it.

  • Custom User Avatar

    If you need help, ask a question. Don't raise an issue.