fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4.  
  5. printf("0x%08x\n", (~0 << 31));
  6. int x;
  7. x = (~0 << 31);
  8. x >>= 31;
  9. x |= x << 2;
  10. x |= x << 4;
  11. x |= x << 8;
  12. x |= x << 16;
  13. printf("0x%08X\n", x);
  14. x = (~0 << 31);
  15. x >>= 30;
  16. x |= x << 2;
  17. x |= x << 4;
  18. x |= x << 8;
  19. x |= x << 16;
  20. printf("0x%08X\n", x);
  21. return 0;
  22. }
Success #stdin #stdout 0s 2160KB
stdin
Standard input is empty
stdout
0x80000000
0xFFFFFFFF
0xFFFFFFFE