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