fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int a;
  5. int *pA;
  6.  
  7. a=5;
  8. pA = &a;
  9.  
  10. printf("변수 a의 값은 %d입니다 \n", a);
  11. printf("변수 a의 어드레스는 %p입니다. \n", &a);
  12. printf("포인터 pA의 값은 %p입니다. \n", pA);
  13. printf("pA의 갑은 %d입니다. \n", *pA);
  14.  
  15.  
  16.  
  17. return 0;
  18. }
  19.  
Success #stdin #stdout 0s 9424KB
stdin
Standard input is empty
stdout
변수 a의 값은 5입니다 
변수 a의 어드레스는 0x7ffd3bed017c입니다. 
포인터 pA의 값은 0x7ffd3bed017c입니다. 
pA의 갑은 5입니다.