fork(1) download
  1. #include <stdio.h>
  2.  
  3. int average(int a, int b) {
  4. return (a + b) / 2;
  5. }
  6.  
  7. int main(void) {
  8. int m = 1500000000;
  9. int av = average(m, m);
  10. printf("m=%d\naverage=%d", m, av);
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 2168KB
stdin
Standard input is empty
stdout
m=1500000000
average=-647483648