this post was submitted on 11 Feb 2024
305 points (98.4% liked)

Programmer Humor

32495 readers
536 users here now

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

Rules:

founded 5 years ago
MODERATORS
 

Hacker News post about this: https://news.ycombinator.com/item?id=39309783 (source available)

you are viewing a single comment's thread
view the rest of the comments
[–] olorin99@kbin.earth 16 points 9 months ago (2 children)

You can have a pointer to a pointer in c++ too tho?

[–] Omega_Haxors@lemmy.ml 3 points 9 months ago (1 children)

Can you have two pointers pointing at each other?

[–] olorin99@kbin.earth 4 points 9 months ago
void* ptr2 = &ptr1;
ptr1 = &ptr2;```

[–] mindbleach@sh.itjust.works -1 points 9 months ago

You don't say.