fork download
  1. #include <stdio.h>
  2. #include <limits.h>
  3.  
  4. int main()
  5. {
  6. long long bigger = 0;
  7. int smaller = INT_MAX;
  8.  
  9. bigger = smaller * 2;
  10. printf("Smaller = %d\n", smaller);
  11. printf("Bigger = smaller * 2 = %lld\n\n", bigger);
  12.  
  13. return 0;
  14. }
Success #stdin #stdout 0s 2292KB
stdin
Standard input is empty
stdout
Smaller = 2147483647
Bigger = smaller * 2 = -2