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