Click here to Skip to main content
15,891,431 members

Survey Results

Should array indexing start at 0 or 1?   [Edit]

Survey period: 7 Mar 2011 to 14 Mar 2011

Old school VB devs and old school C devs know the answer. What's your feeling in this modern, enlightened era?

OptionVotes% 
01,11587.93
115312.07



 
GeneralRe: Humans start counting at 1... Pin
Hans Dietrich11-Mar-11 1:59
mentorHans Dietrich11-Mar-11 1:59 
GeneralRe: Humans start counting at 1... Pin
Marc Clifton11-Mar-11 2:27
mvaMarc Clifton11-Mar-11 2:27 
GeneralRe: Humans start counting at 1... Pin
Hans Dietrich11-Mar-11 2:40
mentorHans Dietrich11-Mar-11 2:40 
GeneralRe: Humans start counting at 1... Pin
Brett Caswell18-May-11 10:37
Brett Caswell18-May-11 10:37 
GeneralRe: Humans start counting at 1... Pin
PIEBALDconsult10-Mar-11 1:46
mvePIEBALDconsult10-Mar-11 1:46 
GeneralRe: Humans start counting at 1... Pin
Yusuf10-Mar-11 17:27
Yusuf10-Mar-11 17:27 
GeneralRe: Humans start counting at 1... Pin
Ed Nutting11-Mar-11 8:34
Ed Nutting11-Mar-11 8:34 
GeneralRe: Humans start counting at 1... Pin
mirdones10-Mar-11 2:22
mirdones10-Mar-11 2:22 
Well, it may be true for you, but when you are in the embedded world, you usually don't use objects, sometimes you are even forbiden to use it.

In other languages, such as ADA, you start counting whenever you want, you just need to tell the compiler what are your limits. Sometimes you don't even count numbers.

Maybe it is just me, but I think this question does not make sense and serves to just start another language war just by its text saying C is ancient history when it is still widely used.
GeneralRe: Humans start counting at 1... Pin
Tomz_KV10-Mar-11 5:30
Tomz_KV10-Mar-11 5:30 
AnswerRe: Humans start counting at 1... Pin
cruzbdg10-Mar-11 7:14
cruzbdg10-Mar-11 7:14 
GeneralRe: Humans start counting at 1... Pin
Klaus-Werner Konrad13-Mar-11 1:42
Klaus-Werner Konrad13-Mar-11 1:42 
GeneralRe: Humans start counting at 1... Pin
cruzbdg13-Mar-11 4:23
cruzbdg13-Mar-11 4:23 
GeneralRe: Humans start counting at 1... Pin
Emilio Garavaglia13-Mar-11 21:37
Emilio Garavaglia13-Mar-11 21:37 
GeneralRe: Humans start counting at 1... Pin
Nick Polyak11-Mar-11 6:18
mvaNick Polyak11-Mar-11 6:18 
GeneralRe: Humans start counting at 1... Pin
Kevin McFarlane12-Mar-11 2:27
Kevin McFarlane12-Mar-11 2:27 
GeneralRe: Humans start counting at 1... Pin
Alan Burkhart12-Mar-11 13:05
Alan Burkhart12-Mar-11 13:05 
GeneralRe: Humans start counting at 1... Pin
Jacques Bourgeois12-Mar-11 16:29
Jacques Bourgeois12-Mar-11 16:29 
GeneralZero based computing PinPopular
W Greg Johnson9-Mar-11 3:44
W Greg Johnson9-Mar-11 3:44 
GeneralRe: Zero based computing Pin
Ravi Sant9-Mar-11 17:51
Ravi Sant9-Mar-11 17:51 
GeneralI'm fine with both conventions. Pin
CPallini8-Mar-11 22:22
mveCPallini8-Mar-11 22:22 
GeneralRe: I'm fine with both conventions. Pin
peterchen10-Mar-11 4:28
peterchen10-Mar-11 4:28 
GeneralRe: I'm fine with both conventions. Pin
CPallini10-Mar-11 4:33
mveCPallini10-Mar-11 4:33 
GeneralAsking too late? PinPopular
Kamran Behzad8-Mar-11 12:28
Kamran Behzad8-Mar-11 12:28 
GeneralRe: Asking too late? Pin
Shajeel8-Mar-11 23:28
Shajeel8-Mar-11 23:28 
GeneralRe: Asking too late? Pin
jawed.ace9-Mar-11 3:52
jawed.ace9-Mar-11 3:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.