An array begins with 0 and ends with n-1 while n is the size of the array.

This is because [n] shifts the pointer at n adresses to the next element, but your pointer points also to an valid element.


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com