fork(1) download
  1. #include<stdio.h>
  2.  
  3. void fun(int *p,int *q)
  4. {
  5. p=q;
  6. *p=q;
  7. }
  8. int i=0,j=1;
  9. int main()
  10.  
  11. {
  12. fun(&i,&j);
  13. printf("%d \n",&j);
  14. printf("%d%d",i,j);
  15. }
Success #stdin #stdout 0s 9424KB
stdin
Standard input is empty
stdout
699768880 
0699768880