fork(1) 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.  
  12. w=*x;
  13. *x=*y;
  14. *y=w;
  15. }
  16.  
  17.  
Success #stdin #stdout 0s 5312KB
stdin
Standard input is empty
stdout
5 8