fork download
  1. #include <stdio.h>
  2.  
  3. int main(void){
  4.  
  5. int a;
  6. a=10;
  7.  
  8.  
  9. int*p;
  10. p=&a;
  11. *p=5;
  12. printf("aのアドレス=%d\n",a);
  13. printf("aのアドレス=%d",*p);
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
aのアドレス=5
aのアドレス=5