fork(2) download
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. int a=10;
  6.  
  7. int*p;
  8.  
  9. p=&a;
  10.  
  11. *p=100;
  12.  
  13. printf("変数a=%d\n",a);
  14.  
  15. printf("ポインタ変数pのアドレス p=%p\n",p);
  16. return 0;
  17. }
Success #stdin #stdout 0s 5336KB
stdin
5
1
5
2
1
9
stdout
変数a=100
ポインタ変数pのアドレス p=0x7ffdcfb76e14