fork(1) download
  1. #include <stdio.h>
  2.  
  3. #define square(x) ((x)*(x))
  4. int main(void) {
  5.  
  6. int i;
  7. i = 8 / square(4);
  8. printf("%d %d", (int)i, (int)(8/square(4)));
  9. printf("\n%f %f", (float)i, (float)8/((float)square(4)));
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0s 2292KB
stdin
Standard input is empty
stdout
0 0
0.000000 0.500000