Click here to Skip to main content
15,899,313 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: I think it should start at 13.2314514 Pin
Jeremy Hutchinson7-Mar-11 6:06
professionalJeremy Hutchinson7-Mar-11 6:06 
GeneralRe: I think it should start at 13.2314514 Pin
Mike Hankey7-Mar-11 12:10
mveMike Hankey7-Mar-11 12:10 
GeneralConsistency Pin
hairy_hats7-Mar-11 1:22
hairy_hats7-Mar-11 1:22 
GeneralNought, nought a thousand times nought. Pin
Henry Minute7-Mar-11 1:08
Henry Minute7-Mar-11 1:08 
GeneralIt should be a choiche, in high level programming languages Pin
Emilio Garavaglia6-Mar-11 21:07
Emilio Garavaglia6-Mar-11 21:07 
GeneralRe: It should be a choiche, in high level programming languages Pin
OriginalGriff6-Mar-11 21:41
mveOriginalGriff6-Mar-11 21:41 
GeneralRe: It should be a choiche, in high level programming languages Pin
Johnny J.6-Mar-11 21:46
professionalJohnny J.6-Mar-11 21:46 
GeneralRe: It should be a choiche, in high level programming languages Pin
Emilio Garavaglia7-Mar-11 4:03
Emilio Garavaglia7-Mar-11 4:03 
OriginalGriff wrote:
better to use a dictionary instead.

Hey ... we are talking about "high level languages" not those "evoluted assemblers" like C and C++!!

y=v[x] is an expression extracting a value for y corresponding to a discrete value of x using the v table.
The data structure shouldn't care, and should be up to the compiler to decide to use a plain array, and array with some index elaboration, a dictionary (or <map> in C++ lexicon), a "sparse matrix", a skip-list or whatever better suits the way data are stored, walked and accessed.
Otherwise, whats the meaning of "high level" ??

2 bugs found.
> recompile ...
65534 bugs found.
D'Oh! | :doh:


GeneralRe: It should be a choiche, in high level programming languages Pin
Rob Grainger7-Mar-11 22:10
Rob Grainger7-Mar-11 22:10 
GeneralRe: It should be a choiche, in high level programming languages Pin
Emilio Garavaglia8-Mar-11 4:33
Emilio Garavaglia8-Mar-11 4:33 
GeneralRe: It should be a choiche, in high level programming languages Pin
Klaus-Werner Konrad13-Mar-11 2:41
Klaus-Werner Konrad13-Mar-11 2:41 
GeneralRe: It should be a choiche, in high level programming languages Pin
Emilio Garavaglia13-Mar-11 8:14
Emilio Garavaglia13-Mar-11 8:14 
GeneralRe: It should be a choiche, in high level programming languages Pin
Klaus-Werner Konrad13-Mar-11 10:04
Klaus-Werner Konrad13-Mar-11 10:04 
GeneralRe: It should be a choiche, in high level programming languages Pin
Emilio Garavaglia13-Mar-11 21:05
Emilio Garavaglia13-Mar-11 21:05 
GeneralRe: It should be a choiche, in high level programming languages Pin
Klaus-Werner Konrad14-Mar-11 11:15
Klaus-Werner Konrad14-Mar-11 11:15 
General...except when... Pin
OriginalGriff6-Mar-11 20:59
mveOriginalGriff6-Mar-11 20:59 
GeneralRe: ...except when... Pin
Johnny J.6-Mar-11 21:40
professionalJohnny J.6-Mar-11 21:40 
GeneralRe: ...except when... Pin
OriginalGriff6-Mar-11 21:42
mveOriginalGriff6-Mar-11 21:42 
GeneralRe: ...except when... Pin
Nagy Vilmos7-Mar-11 6:55
professionalNagy Vilmos7-Mar-11 6:55 
GeneralRe: ...except when... Pin
OriginalGriff7-Mar-11 8:27
mveOriginalGriff7-Mar-11 8:27 
GeneralIt should start from 0 in a high-level programming language. PinPopular
OriginalGriff6-Mar-11 20:58
mveOriginalGriff6-Mar-11 20:58 
GeneralRe: It should start from 0 in a high-level programming language. Pin
Johnny J.6-Mar-11 21:39
professionalJohnny J.6-Mar-11 21:39 
GeneralRe: It should start from 0 in a high-level programming language. Pin
OriginalGriff6-Mar-11 22:04
mveOriginalGriff6-Mar-11 22:04 
GeneralMessage Removed Pin
7-Mar-11 4:34
professionalN_tro_P7-Mar-11 4:34 
GeneralRe: It should start from 0 in a high-level programming language. [modified] Pin
Indivara6-Mar-11 22:07
professionalIndivara6-Mar-11 22:07 

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.