Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
djxfade
on Jan 20, 2021
|
parent
|
context
|
favorite
| on:
Again on 0-based vs. 1-based indexing
I don't think a lot of beginner friendly languages exposes pointers to the developer
randomdata
on Jan 20, 2021
[–]
Unless they have arrays, which are conceptually not a whole lot different.
mewpmewp2
on Jan 20, 2021
|
parent
[–]
Most of the time you don't use them or think or need to think of them as pointers.
randomdata
on Jan 20, 2021
|
root
|
parent
[–]
No, but pointers are thought of as array indices. If you understand arrays, you understand pointers.
mewpmewp2
on Jan 20, 2021
|
root
|
parent
[–]
What do you mean by understanding? E.g I have been using arrays productively in PHP and JavaScript, does it mean I understand them?
randomdata
on Jan 20, 2021
|
root
|
parent
[–]
If, given a[n], you understand that
n
points to a position in array
a
then you understand pointers.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: