@mrtino Technically speaking, there are no arrays in C though... 🤔
Well, the language does implement arrays, but... its in fact a pointer to a memory address in the heap... In other words, arrays in C do not start at 0, but at their specific address... Same in C++ If I recall correctly...
So... while in other languages with protected types it might start at 0 or 1, in C/C++ they would trully start at 0x1fffecd or whatever.
You can still use indexes though... but these are just multipliers.
@mrtino Je crois que le Visual Basic permet de faire des tableaux qui ne commencent pas de zéro. Enfin, la doc dit que ça commence de zéro, mais il y a une fonction LBound  qui donne le premier index… ça serait bizarre de faire une fonction pour toujours renvoyer zéro.
Serious question Show more
[also haskell should be in row 3, if we're talking about the arrays from the `array` package, which apart from having any start index can also be indexed by like, ranges of chars, or pairs, or your own datatypes]
@thfr @mrtino @AFresh1 hey, $[ has been discouraged since perl5 came out, became a noop in 5.16, and will become fatal in 5.30, the next release - https://metacpan.org/pod/distribution/perl/pod/perlvar.pod#$[
Generalistic and moderated instance. All opinions are welcome, but hate speeches are prohibited. Users who don't respect rules will be silenced or suspended, depending on the violation severity.