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