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;
  10. bigger *= 2;
  11. printf("Smaller = %d\n", smaller);
  12. printf("Bigger = smaller * 2 = %lld\n\n", bigger);
  13.  
  14. return 0;
  15. }
Success #stdin #stdout 0s 2292KB
stdin
Standard input is empty
stdout
Smaller = 2147483647
Bigger = smaller * 2 = 4294967294