fork download
  1. #include <stdio.h>
  2. void sort(int*x, int*y);
  3. int main(void) {
  4. int x=8, y=5;
  5. sort(&x, &y);
  6. printf("%d %d", x,y);
  7.  
  8. return 0;
  9. }void sort(int*x, int*y){
  10. int w;
  11. if(*x<*y){
  12. w=*x;
  13. *x=*y;
  14. *y=w;
  15. }
  16. }
  17.  
  18.  
Success #stdin #stdout 0.01s 5240KB
stdin
Standard input is empty
stdout
8 5