例如:
printf("&num_ptr = %p ; num_ptr = %p ;", &num_ptr , num_ptr);
输出如下:
&num_ptr = 0018FF50 ; num_ptr = 0018FF48 ;
这是为什么?
最佳答案
因为指针没有指向它自己。
关于c - 为什么 'address of' 运算符给我的指针地址与指针本身不同?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13000886/