我最近了解到,这sizeof不是一个函数,实际上是在编译时进行评估.
sizeof
但我仍然无法弄清楚如何sizeof(*NULL)等于1.
sizeof(*NULL)
编辑:我在这里专门讨论gcc.
c gcc pointers
c ×1
gcc ×1
pointers ×1