1166
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 41 points 2 months ago* (last edited 2 months 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 2 months ago* (last edited 2 months 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
1166 points (98.6% liked)

Programmer Humor

25513 readers
1762 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