fork 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. *q = 1;
  10. a = 3;
  11. b = *p;
  12. *p=100;
  13.  
  14. printf("%d, %d, %d, %d\n", a, b, *p, *q );
  15.  
  16. return 0;
  17. }
Success #stdin #stdout 0.01s 5280KB
stdin
Standard input is empty
stdout
100, 3, 100, 3