Oct. 3, 2000
2:28 a.m.
Quoth Janis.Papanagnou@varetis.de on Mon, Oct 02, 2000:
One observation to add is about numbering/enumerating/counting in general: 1st, 2nd, 3rd, ... well - I've never heard about "the 0-st". Enumerating starting with zero seems to have come in vogue with C, due to the simpler address calculation (saves some micro seconds?).
In C, array indices (I think that's what you mean) are not enumeration, but offsets. foo[bar] is internally translated to *(foo + bar), therefore: arr[i] == *(arr + i) == *(i + arr) == i[arr] Vadik. -- Would like to kill a certain group of users. -- UNIX tech support call