1116
Tell me the truth ... (piefed.jeena.net)
you are viewing a single comment's thread
view the rest of the comments
[-] xthexder@l.sw0.com 40 points 3 days ago* (last edited 3 days ago)

Or just std::bitset<8> for C++. Bit fields are neat though, it can store weird stuff like a 3 bit integer, packed next to booleans

[-] Sonotsugipaa@lemmy.dbzer0.com 10 points 3 days ago* (last edited 3 days ago)

That's only for C++, as far as I can tell that struct is valid C

this post was submitted on 15 May 2025
1116 points (100.0% liked)

Programmer Humor

23326 readers
324 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 2 years ago
MODERATORS