this post was submitted on 08 Jun 2026
549 points (94.2% liked)

Programmer Humor

31959 readers
1438 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
 
you are viewing a single comment's thread
view the rest of the comments
[–] dejected_warp_core@lemmy.world 4 points 2 weeks ago* (last edited 2 weeks ago)

*x = dereference or "point to". Treats the variable x as containing a pointer value. Evaluates to a variable existing at the address in x.

&x = reference or "get address of". Evaluates to the address of x.

They're complimentary operators, so *(&x) cancels out and is equvalent to just x.