550
Pointers explained: (lemmy.world)
you are viewing a single comment's thread
view the rest of the comments
[-] NullPointerException@lemmy.ca 66 points 1 week ago

Wait. It’s been a long time but shouldn’t be int*** -> int** -> int* -> int ?

[-] Susaga@sh.itjust.works 84 points 1 week ago

I think int*** is meant to be pointing at int**, but the image is just unclear about where everything is in perspective.

[-] dohpaz42@lemmy.world 28 points 1 week ago

Pretty sure the image is clear:

int*** -> int*
int** -> int
Int* -> int

Clarity doesn’t mean correct. But that’s probably why it’s posted here. 🤷‍♂️

[-] mexicancartel@lemmy.dbzer0.com 9 points 1 week ago

int** is inside a TV, and persumably int* must be inside another TV(even though uts not edited in). The image perespective is showing one thing inside the other, inside the other. So when when int*** points the TV it reference int**, which reference int* which reference int. Its just edited very bad

[-] Susaga@sh.itjust.works 8 points 1 week ago

RT*** isn't pointing at RT*, he's pointing at the TV showing RT**. The fact you think otherwise is what makes the image unclear. I'm not sure why you insist on them being wrong.

[-] _tasten_tiger@feddit.org 0 points 4 days ago

But that doesn't hold up, because RT** isn't pointing at a TV containing RT* only RT*** is pointing at an TV containing RT** RT* and RT

[-] MonkderVierte@lemmy.zip 2 points 1 week ago
[-] HeyThisIsntTheYMCA@lemmy.world 2 points 6 days ago

That one's a typo

[-] Monument@piefed.world 4 points 1 week ago* (last edited 1 week ago)

It’s to check to see if commenters know how to escape the symbol. Congratulations! You passed!

Source: I made it up.

[-] MonkderVierte@lemmy.zip 5 points 1 week ago

You don't need to escape standalone *. At least not on Lemmy.

[-] Valmond@lemmy.dbzer0.com 2 points 6 days ago

You can't escape it, it will always get you.

[-] Monument@piefed.world 3 points 1 week ago

Well, I thought my misinformation was funny.

[-] obviouspornalt@fedinsfw.app 15 points 1 week ago

I mean, that's pretty much what happens to me every time I try to use pointers, so the meme checks out.

[-] terranoid@lemmy.cafe 7 points 1 week ago

yep this is just someone misunderstanding pointers lol

[-] Dialectical_Specialist@quokk.au 3 points 1 week ago

That's not the end of the chain either, right?

Because : int -> &int -> &&int

Or can you not use the address operator like that? It also might be int& &, I failed cs2200 on this exact type of technicality

this post was submitted on 08 Jun 2026
550 points (94.4% liked)

Programmer Humor

31835 readers
563 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS