#include <stdio.h>
int main(void)
{
int x = 99;
int *pt1;
pt1 = &x;
printf("Value at p1: %d\n", *pt1);
printf("Address of p1 (with %%p): %p\n", pt1);
printf("Address of p1 (with %%d): %d\n", pt1);
return 0;
}
什么缺点/危险打印机指针值与%d
代替%p
?打印指针值
您可能要选择一个答案,“右”之一。 – DevSolar 2011-05-30 06:26:18