3 ms·
Does 1-based indexing have any advantage, beyond familiarity to scientists?
by ced 15y ago
Does 1-based indexing have any advantage, beyond familiarity to scientists?
- jfager 15y agoNot really, but it's not important either way.
- jballanc 15y agoWith 1-based indexing, length == last index. Does 0-based indexing have any advantage, beyond ability to do pointer arithmetic with indexes?
- scott_s 15y agoIn 0-based indexing, n % length is a value inside the range.
- cscheid 15y agoDijkstra to the rescue: http://www.cs.utexas.edu/users/EWD/transcriptions/EWD08xx/EWD831.html http://www.cs.utexas.edu/users/EWD/transcriptions/EWD08xx/EW...