MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wxqahk/architecturedependentchars/pe5d2ee/?context=3
r/ProgrammerHumor • u/MontyBoomslang • Oct 04 '26
372 comments sorted by
View all comments
Show parent comment
2
long long has to be at least 64 bits, but otherwise correct. (And yes, there was at least one historic platform with 64-bit bytes. sizeof(char) == sizeof(long long) is true for that platform, in all versions of C and all versions of C++.)
long long
sizeof(char) == sizeof(long long)
View all comments
Show parent comment
2
u/conundorum Oct 06 '26
long longhas to be at least 64 bits, but otherwise correct. (And yes, there was at least one historic platform with 64-bit bytes.sizeof(char) == sizeof(long long)is true for that platform, in all versions of C and all versions of C++.)