fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int a = 3 / 2;
  5. int b = -3 / 2;
  6. printf("3 / 2 = %d\n", a);
  7. printf("-3 / 2 = %d\n", b);
  8. return 0;
  9. }
  10.  
Success #stdin #stdout 0s 10320KB
stdin
Standard input is empty
stdout
3 / 2 = 1
-3 / 2 = -1