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