Timeline for Why are zero-based arrays the norm?
Current License: CC BY-SA 2.5
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| S Sep 26, 2011 at 18:19 | history | migrated | from stackoverflow.com (revisions) | ||
| S Sep 26, 2011 at 18:19 | history | made wiki | Post Made Community Wiki | ||
| Jul 25, 2010 at 19:24 | comment | added | Dennis Munsie | That is a crazy way to write that -- something that if you saw in any code that you had to maintain would be a huge warning sign. Thankfully I haven't run across that... yet :) | |
| Jul 25, 2010 at 16:37 | comment | added | Donal Fellows | In fact, you can rewrite array[n] as n[array] in C. It's not a good idea to do it, it's confusing! But it's legal (well, at least up to C89) because of that identity above and the fact that addition is commutative. | |
| Jul 25, 2010 at 15:15 | history | answered | Dennis Munsie | CC BY-SA 2.5 |