Can the national debt (in dollars) be represented in an int or an Integer?

  • A: neither
  • B: int
  • C: Integer
  • D: both
  • E: WTF

    Answer: A

    The national debt is over $15,000,000,000,000.

    We use our rule that 1000 ≅ 10 bits.

    The national debt requires 44 bits: 4 * 10 bits for 1,000,000,000,000 and 4 bits for 15 (24 = 16).

    Both int and Integer are 32 bits, which can represent ± 2,147,483,647, not even close to the national debt.

    Prev    Next    Page+10