this post was submitted on 13 Dec 2025
280 points (97.9% liked)

Programmer Humor

39911 readers
32 users here now

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

Rules:

founded 6 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] Tolookah@discuss.tchncs.de 7 points 4 weeks ago (1 children)

No

i= 0;

do{ i++; } while (10 != *(U32 *) i );

?

Gotta make it hard to read as well

[–] anton@lemmy.blahaj.zone 3 points 4 weeks ago (1 children)

Segmentation fault, you forgot to take the reference and derefenced a null pointer.

[–] Tolookah@discuss.tchncs.de 1 points 4 weeks ago

i is my address. The bigger problem is that I should have increased i by sizeof(U32)

(This works on bare metal, mostly, not on an os)