Originally Posted By: Logan
Plenty of other languages/environments have ArrayIndexOutOfBoundsException etc. If I define array[3] and then set array[-26.7] to 0, I should get an error message. I don't.

Surprise surprise, C doesn't store the needed information for the array in memory. You can basically shift everything with the [] brackets, even if its not an array.

In C, informations about objects are only available at compile time, at runtime those informations aren't needed anymore. And one can have valid reasons to exceed the boundaries of an array.


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