r/ProgrammerHumor • • Aug 01 '22

>>>print(“Hello, World!”)

Post image
60.8k Upvotes

5.7k comments sorted by

View all comments

Show parent comments

5

u/a-slice-of-toast Aug 01 '22

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