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