fork(1) download
  1. #include <stdio.h>
  2.  
  3. int max(int x, int y);
  4.  
  5. int main(void) {
  6. int a,b,c,d;
  7.  
  8. a = 1;
  9. b = 5;
  10. c = 3;
  11. d = 4;
  12.  
  13. printf("%d\n", max(max(a, b), max(c, d)));
  14.  
  15. return 0;
  16. }
  17.  
  18. int max(int x, int y){
  19. return (x > y) ? x : y;
  20. }
Success #stdin #stdout 0s 5324KB
stdin
Standard input is empty
stdout
5