fork download
  1. #include <stdio.h>
  2.  
  3.  
  4. int main (void){
  5. int a=10;
  6. int *p;
  7. p=&a;
  8. printf("変数aのアドレス &a=%p\n",&a);
  9. printf("ポインタの変数pのアドレスp=%p\n",p);
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0s 5276KB
stdin
Standard input is empty
stdout
変数aのアドレス &a=0x7ffe305ea7b4
ポインタの変数pのアドレスp=0x7ffe305ea7b4