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

Programmer Humor

32503 readers
418 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
[–] vox@sopuli.xyz 18 points 1 year ago* (last edited 1 year ago) (2 children)

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

[–] Johanno@lemmy.fmhy.ml 6 points 1 year ago (1 children)

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

[–] darcy@sh.itjust.works 10 points 1 year ago
[–] akariii@lemmy.blahaj.zone 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