fork download
  1. #include <stdio.h>
  2. void swap(int *x,int*y);
  3. int main(void) {
  4. int x=3,y=2;
  5. swap(&x,&y);
  6. return 0;
  7. }
  8. void swap(int *x,int*y){
  9. int w;
  10. w = *x ;
  11. *x = *y;
  12. *y = w;
  13. }
  14.  
Success #stdin #stdout 0.01s 5320KB
stdin
Standard input is empty
stdout
Standard output is empty