fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. signed int n = 0;
  5.  
  6. printf("n is %d \n", n);
  7. printf("shift1 %d \n", -1 << (32 + (~0 + 1)));
  8. printf("shift2 %d \n", -1 << (32 + (~n + 1)));
  9.  
  10. return 0;
  11. }
Success #stdin #stdout 0s 2248KB
stdin
Standard input is empty
stdout
n is 0 
shift1 0 
shift2 0