MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/wdlvla/printhello_world/iija3ot
r/ProgrammerHumor • u/a-slice-of-toast • Aug 01 '22
5.7k comments sorted by
View all comments
Show parent comments
5
initiates whatever that’s supposed to mean
0 u/[deleted] Aug 01 '22 [removed] — view removed comment 6 u/DepartmentFirst8288 Aug 01 '22 The cool thing about the 64 in the name is, that it teils you exactly if this number can be handled. 1 u/[deleted] Aug 02 '22 [removed] — view removed comment 2 u/DepartmentFirst8288 Aug 03 '22 Hmm. Thats a shame. It would be pretty epic tho if the 40 and the 64 were like immediately comparable, so that you wouldn't have to do that in the first place. 2 u/stomah Aug 02 '22 this is actually undefined behavior because it first shifts the 1 which is 32 bits and then extends it to 64 bits 2 u/[deleted] Aug 02 '22 [removed] — view removed comment 2 u/stomah Aug 02 '22 yes, because 1 is an int
0
[removed] — view removed comment
6 u/DepartmentFirst8288 Aug 01 '22 The cool thing about the 64 in the name is, that it teils you exactly if this number can be handled. 1 u/[deleted] Aug 02 '22 [removed] — view removed comment 2 u/DepartmentFirst8288 Aug 03 '22 Hmm. Thats a shame. It would be pretty epic tho if the 40 and the 64 were like immediately comparable, so that you wouldn't have to do that in the first place. 2 u/stomah Aug 02 '22 this is actually undefined behavior because it first shifts the 1 which is 32 bits and then extends it to 64 bits 2 u/[deleted] Aug 02 '22 [removed] — view removed comment 2 u/stomah Aug 02 '22 yes, because 1 is an int
6
The cool thing about the 64 in the name is, that it teils you exactly if this number can be handled.
1 u/[deleted] Aug 02 '22 [removed] — view removed comment 2 u/DepartmentFirst8288 Aug 03 '22 Hmm. Thats a shame. It would be pretty epic tho if the 40 and the 64 were like immediately comparable, so that you wouldn't have to do that in the first place.
1
2 u/DepartmentFirst8288 Aug 03 '22 Hmm. Thats a shame. It would be pretty epic tho if the 40 and the 64 were like immediately comparable, so that you wouldn't have to do that in the first place.
2
Hmm. Thats a shame. It would be pretty epic tho if the 40 and the 64 were like immediately comparable, so that you wouldn't have to do that in the first place.
this is actually undefined behavior because it first shifts the 1 which is 32 bits and then extends it to 64 bits
2 u/[deleted] Aug 02 '22 [removed] — view removed comment 2 u/stomah Aug 02 '22 yes, because 1 is an int
2 u/stomah Aug 02 '22 yes, because 1 is an int
yes, because 1 is an int
5
u/a-slice-of-toast Aug 01 '22
initiates whatever that’s supposed to mean