<style type="text/css"> p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #78492a; background-color: #ffffff} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; background-color: #ffffff; min-height: 14.0px} p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #ba2da2; background-color: #ffffff} p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff} p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff; min-height: 13.0px} p.p6 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #d12f1b; background-color: #ffffff} span.s1 {color: #d12f1b} span.s2 {color: #000000} span.s3 {color: #ba2da2} span.s4 {color: #272ad8} span.s5 {color: #3e1e81} span.s6 {text-decoration: underline} span.s7 {text-decoration: underline ; color: #000000} </style>

#include <stdio.h>


int main(void)

{

    int n = 7;

    

    printf("n: %d \n", n);

    printf("&n: %x \n", &n);

    printf("포인터 하나당 크기는 %ld 바이트\n", sizeof(void *));

    printf("&n: %p \n\n", &n);

    

    return 0;

}


이거에 출력값이 


<style type="text/css"> p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px 'Apple SD Gothic Neo'; color: #000000} p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; min-height: 13.0px} span.s1 {font-variant-ligatures: no-common-ligatures} span.s2 {font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures} </style>

n: 7 

&n: efbff5c8 

포인터 하나당 크기는 8 바이트

&n: 0x7ffeefbff5c8 


Program ended with exit code: 0


댓글로 누가 해보라는것도 해봤고,

%p가 16진수로 표현하는거니까 %x로도 나타내봤는데

앞에 4자리가 빠져서 나오네...

그럼 %p 로 출력했을 때 앞에 더나오는 4자리는 뭐야...