10 ms·
Yes and it also explains why array indexing starts at 0.
by chmike 13y ago
Yes and it also explains why array indexing starts at 0.
- unfamiliar 13y agoNot really. It would be just as easy to say a[x]=*(a+x-1) and let array indices start at 1.
- valisystem 13y agoactually yes, [] derives from BCPL, see evincarofautumn comment just above. ( link to comment, https://news.ycombinator.com/item?id=6886488 https://news.ycombinator.com/item?id=6886488 derived from this submission : https://news.ycombinator.com/item?id=6879478 https://news.ycombinator.com/item?id=6879478 )