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