例如: sizeof(char*)返回4一样int*,long long*,我已经竭尽所能.这有什么例外吗?
sizeof(char*)
int*
long long*
c c++ memory pointers sizeof
在C中,我需要知道结构的大小,其中包含函数指针.我可以保证在所有平台和架构上:
我认为所有这些答案都是肯定的,但我想确定.对于上下文,我正在呼唤sizeof(struct mystruct),仅此而已.
sizeof(struct mystruct)
c pointers function-pointers sizeof type-conversion
c ×2
pointers ×2
sizeof ×2
c++ ×1
function-pointers ×1
memory ×1
type-conversion ×1