Hacker News new | ask | show | jobs
by saagarjha 2248 days ago
I see no reason why this should be obvious; it's just a historical quirk of array indexing in C being a literal translation to pointer arithmetic. In C++, for example, there is no way to support this with the subscript operator.