this post was submitted on 13 Jul 2023
453 points (98.3% liked)

Programmer Humor

32482 readers
467 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
[–] [email protected] 19 points 1 year ago* (last edited 1 year ago) (3 children)

tbh c/c++ type system is super fucked up
What the fuck is unsigned long long int just call it u64

[–] [email protected] 6 points 1 year ago (1 children)

Well it isn't always 64 bytes. Some architectures differ.

[–] [email protected] 10 points 1 year ago
[–] [email protected] 3 points 1 year ago

you can just use unsigned long long (drop the int) or, if it bothers you that much, uint64t but keep in mind that yhe size of unsigned long long may vary depending on the architecture