Re:Again on 0-based vs. 1-based indexing
by djxfade on Wednesday January 20, 2021 @06:17AM
(#25845059)
I don't think a lot of beginner friendly languages exposes pointers to the developer
[ Parent
| on HN ]
Re:Again on 0-based vs. 1-based indexing
by randomdata on Wednesday January 20, 2021 @09:20AM
(#25846700)
Unless they have arrays, which are conceptually not a whole lot different.
Re:Again on 0-based vs. 1-based indexing
by mewpmewp2 on Wednesday January 20, 2021 @09:50AM
(#25847052)
Most of the time you don't use them or think or need to think of them as pointers.
Re:Again on 0-based vs. 1-based indexing
by randomdata on Wednesday January 20, 2021 @11:17AM
(#25848196)
No, but pointers are thought of as array indices. If you understand arrays, you understand pointers.
Re:Again on 0-based vs. 1-based indexing
by mewpmewp2 on Wednesday January 20, 2021 @12:50PM
(#25849460)
What do you mean by understanding?
E.g I have been using arrays productively in PHP and JavaScript, does it mean I understand them?
Re:Again on 0-based vs. 1-based indexing
by randomdata on Wednesday January 20, 2021 @02:55PM
(#25851138)
If, given a[n], you understand that n points to a position in array a then you understand pointers.