268
submitted 2 months ago by yogthos@lemmy.ml to c/programmerhumor@lemmy.ml

you are viewing a single comment's thread
view the rest of the comments
[-] SelfProgrammed@lemmy.today 40 points 2 months ago

Here's a secret I wish someone told me in high school: literally everything is pass by value, it's just that sometimes the value is an address. It demystified pointers for me.

[-] MyNameIsRichard@lemmy.ml 18 points 2 months ago

Yeah, when I grokked that simple fact pointers became easy.

load more comments (7 replies)
this post was submitted on 12 Dec 2024
268 points (99.3% liked)

Programmer Humor

32707 readers
28 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS