fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int a = 10;
  5. int b = 20;
  6. int * const p = &a;
  7.  
  8. *p = 15;
  9. // p = &b; ← この行を実行するとどうなる?
  10.  
  11. printf("%d\n", *p);
  12. return 0;
  13. }
  14.  
  15.  
Success #stdin #stdout 0.01s 5284KB
stdin
Standard input is empty
stdout
15