fork(1) 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のアドレス&a=%p\n",a);
  14.  
  15. printf("ポインタ変数pのアドレス p=%p\n",p);
  16. return 0;
  17. }
Success #stdin #stdout 0s 5348KB
stdin
5
1
5
2
1
9
stdout
変数aのアドレス&a=0x64
ポインタ変数pのアドレス p=0x7ffd856b2764