Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Who invented the zero based
Message
From
24/11/2011 09:44:12
 
 
To
24/11/2011 09:16:34
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01529748
Message ID:
01529751
Views:
73
>Has been there at least since C - which must be the seventies
>
>Think of zero based as an offset
>
>It does have its advantages. If you start counting from zero, the address where element n starts is the startAddress + n * widthOfElement
>
>For one based it would be startAddress + ( n-1) * widthOfElement
>
>Zero based : for 0 to count-1
>One based : for 1 to count

I still think a universal one based approach would have been enough.

lol
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform