I have to use one dimensional array as 2d matrix of some values.
The problem is that i need to check if given index is out of bounds on the right side (column) border.
Since i can come up with solution i have tried google but none of the answers is to be found.
I have a 7x7 matrix which of inner 5x5 fields are "valid", i need to check if some given index is out of that bounds (specially on the right side column).