gpt4 book ai didi

c - 为什么 'address of' 运算符给我的指针地址与指针本身不同?

转载 作者:太空宇宙 更新时间:2023-11-04 05:43:06 27 4
gpt4 key购买 nike

例如:

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/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com