this post was submitted on 21 Jan 2024
6 points (100.0% liked)

Programmer Humor

31997 readers
637 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] Ethanol@pawb.social 0 points 7 months ago (1 children)

But what if I want a union struct to quickly interpret floats as ints and vice versa! I need my C hacks!

[โ€“] anzich@feddit.de 0 points 7 months ago

It's actually nonstandard. Use memcpy