fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // c = a * b
  5. int a = 1000 * 1000 * 1000;
  6. int b = 10;
  7. long long c = a * (long long )b;
  8. printf( "%lld\n", c );
  9. c = 1LL * a * b;
  10. printf( "%lld\n", c );
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 2248KB
stdin
Standard input is empty
stdout
10000000000
10000000000