In C/C#/etc. you can tell the compiler that a literal number is not what it appears to be (ie., float instead of double, unsigned long instead of int): var...
  • May 26, 2022
  • 0 Comments
-2147483648 is the smallest integer for integer type with 32 bits, but it seems that it will overflow in the if(...) sentence: if (-2147483648 > 0) std::cout << "true";...
  • May 22, 2022
  • 0 Comments
Given by a colleague as a puzzle, I cannot figure out how this C program actually compiles and runs. What is this >>>= operator and the strange 1P1 literal?...
  • May 17, 2022
  • 0 Comments
"foo" instanceof String //=> false "foo" instanceof Object //=> false true instanceof Boolean //=> false true instanceof Object //=> false false instanceof Boolean //=> false false instanceof Object //=>...
  • May 15, 2022
  • 0 Comments