Pointers explained:
2026-06-08 21:31 UTC
Replies (16)
-
@DrCake@lemmy.world 2026-06-08 21:56
Rumble Tumble Games in the wild
-
@lime@feddit.nu 2026-06-08 22:04
they used to call him the deref king back in college
-
@NullPointerException@lemmy.ca 2026-06-08 22:10
Wait. It’s been a long time but shouldn’t be int*** -> int** -> int* -> int ?
-
@14th_cylon@lemmy.zip 2026-06-08 22:12
Why should the left one in the rectangle be int**? It doesn’t make sense to me, they are both clearly just int* What am i missing?
-
@Technus@lemmy.zip 2026-06-08 22:48
Real talk: is there any practical use-case for T*** of any pointee type?
-
@itkovian@lemmy.world 2026-06-09 00:16
So, confusing, nonetheless.
-
@lian_drake@lemmy.world 2026-06-09 00:48
Worse version of this
-
@LovableSidekick@lemmy.world 2026-06-09 01:06
C# delegates enter the chat and nod.
-
@Deconceptualist@leminal.space 2026-06-09 02:00
The placement of the labels is a bit sloppy but I think it tracks. The character in the middle (int*) is pointing at int, then the one on the left (int**) is pointing at the middle one (int*), etc What I want to know: what is that shirt and where do I get it?
-
@Flames5123@sh.itjust.works 2026-06-09 06:25
Now that explain the & part of the pointers that I never really understood.
-
@MonkderVierte@lemmy.zip 2026-06-09 09:05
So, googling it, the general premise is you should use smart pointers to avoid crashes. Got it.
-
@MrNesser@lemmy.world 2026-06-09 11:04
Didn’t expect to see the Drift King here
-
@dangrousperson@feddit.org 2026-06-09 11:16
as a python script kiddie, this is way over my head, but upvoted because of RT Game
-
@Quibblekrust@thelemmy.club 2026-06-09 19:48
Am I a computer scientist now?
-
@refalo@programming.dev 2026-06-10 00:37
that’s not LaurieWired
-
@HeyThisIsntTheYMCA@lemmy.world 2026-06-10 06:03
Uh I’m a charisma class (with unfortunate base stats) what’s int