fork download
  1. /* maximum of two integers 1 */
  2.  
  3. #include <stdio.h>
  4. #include <stdlib.h>
  5.  
  6. int max(int x, int y) {
  7. if (x > y)
  8. return x;
  9. else
  10. return y;
  11. }
  12.  
  13. int main(void) {
  14. int a = 10, b = 20;
  15. printf("%d\n", max(a, b));
  16. printf("%d\n", max(32.4, b));
  17. printf ( "%d, %d\n", a ++, a);
  18. return EXIT_SUCCESS;
  19. }
  20.  
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
20
32
10, 11