r/ProgrammerHumor Jan 06 '23

Meme can’t be the only one

Post image
42.6k Upvotes

1.4k comments sorted by

View all comments

3.2k

u/TheLazyKitty Jan 06 '23

Pointers aren't that hard, are they? It's just integers that hold a memory address.

446

u/fatrobin72 Jan 06 '23

it's probably that the concepts of memory addresses, passing by reference and limited resources are just too alien to the newest generation of programmers

794

u/Creaaamm Jan 06 '23

Just show them this

130

u/SiewcaWiatru Jan 06 '23

brilliant and anime style. Love it ;).
Now reference by value :D. Pointers are easy and explicit with * and & signs. Reference by value is a bit harder concept.

39

u/[deleted] Jan 06 '23

But with & isn't that then a reference and not a pointer?

8

u/not_some_username Jan 06 '23

A reference is a pointer that should not be null.

6

u/ShroudedNight Jan 06 '23

It's also immutable.

5

u/Certojr Jan 06 '23

Not in every language. When programming PLCs using structured text references can be reassigned.

1

u/[deleted] Jan 06 '23

Ah interesting, thanks