Is there a way to give an error message when the code tries and accesses
an element of an array that is out of the bounds of the array?
So, for example, if length is of size 5, and the code tries to access length(6), an
error message would appear at compile time.
Thank you for your time and assistance!
Array Bound Checker