[回复]%p是指什么类型?
%p是指针(pointer)类型,以16进制的形式输出地址。www.linuxeden.com7wqT&uB*M$|A
例如:g/Z*RG!q)}(l??
#include <stdio.h>Linux伊甸园论坛
Tq8?zq,I"P+d;~
;Oj3AG&?www.linuxeden.comint main(void)
.tk'^O
nG1~B{Jv@b%? v
int i;-I [3s K.^
-xGtzXpfN#| printf("The address of main: %p\n", main);
k B*K)N3I;s:}aU
printf("The address of i: %p\n", &i);www.linuxeden.com
c.U]_4dR E#^|
U6d~:Lp]e return 0;9hRoygNU&u
}
|