Wats0ns@sh.itjust.works to Programmer Humor@lemmy.ml · 1 year agoTo type or not to type ?sh.itjust.worksimagemessage-square22fedilinkarrow-up1316arrow-down15
arrow-up1311arrow-down1imageTo type or not to type ?sh.itjust.worksWats0ns@sh.itjust.works to Programmer Humor@lemmy.ml · 1 year agomessage-square22fedilink
minus-squarevoxel@sopuli.xyzlinkfedilinkarrow-up16·edit-21 year agotbh c/c++ type system is super fucked up What the fuck is unsigned long long int just call it u64
minus-squareJohanno@lemmy.fmhy.mllinkfedilinkarrow-up7arrow-down1·1 year agoWell it isn’t always 64 bytes. Some architectures differ.
minus-squareakari@lemmy.blahaj.zonelinkfedilinkarrow-up2·1 year agoyou 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
tbh c/c++ type system is super fucked up
What the fuck is
unsigned long long int
just call itu64
Well it isn’t always 64 bytes. Some architectures differ.
usize
thenyou can just use
unsigned long long
(drop the int) or, if it bothers you that much,uint64t
but keep in mind that yhe size ofunsigned long long
may vary depending on the architecture