this post was submitted on 15 Aug 2024
97 points (97.1% liked)

Programmer Humor

19593 readers
750 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 1 year ago
MODERATORS
 

By Jon S. Stumpf

May your signals all trap
    May your references be bounded
All memory aligned
    Floats to ints rounded

Remember ...

Non-zero is true
    ++ adds one
Arrays start with zero
    and, NULL is for none

For octal, use zero
    0x means hex
= will set
    == means test

use -> for a pointer
    a dot if its not
? : is confusing
    use them a lot

a.out is your program
    there's no U in foobar
and, char (*(*x())[])() is
    a function returning a pointer
    to an array of pointers to
    functions returning char

you are viewing a single comment's thread
view the rest of the comments
[–] Thorry84@feddit.nl 32 points 3 months ago (2 children)

Segmentation fault (core dumped)

[–] CanadaPlus@lemmy.sdf.org 12 points 3 months ago (1 children)

Dump a core out for my homies.

[–] SatouKazuma@programming.dev 5 points 3 months ago

No need. Intel dumped all of them out, even if it was onto the rest of the motherboard.