fork download
  1. #include <stdio.h>
  2.  
  3. void test(long long x) {
  4. printf("%lld\n", x);
  5. printf("%I64d\n", x);
  6. }
  7.  
  8. int main() {
  9. test(1LL << 30);
  10. test(1LL << 31);
  11. test(1LL << 32);
  12. test(1LL << 33);
  13. }
Success #stdin #stdout 0s 4164KB
stdin
Standard input is empty
stdout
1073741824
                                                      1073741824
2147483648
                                                     -2147483648
4294967296
                                                               0
8589934592
                                                               0