Unexpected fun (or fun facts)
-
@toxibunny said in Unexpected fun (or fun facts):
What if x was set to be 4294967295?
You will get 4294967295 + 4294967295 = -2 because 4294967295 = 2^32 - 1. Valid values for 32 bit (4 byte) signed numbers go from -2^31 to 2^31 - 1 (-2147483648 to 2147483647), anything outside that range wraps around. Eg, 2147483648 = -2147483648
-
I asked my lawyer if it was a crime to throw Sodium Chloride at a person.
Lawyer: yes, it's assault
Me: I know it's a salt but is it a crime?!? -
So I told my boss there were some bugs in the server and he hired an exterminator to spray it down