fork download
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5. unsigned int bit = 512;
  6. unsigned int maxBit = ~0;
  7. std::cout << maxBit << " " << ~bit << " diff: " << maxBit - ~bit;
  8.  
  9. return 0;
  10. }
  11.  
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
4294967295 4294966783 diff: 512