Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
的大小size_t总是等于 的大小void *吗?
size_t
void *
或者在某些平台/编译器上可能有一些例外?
虽然有可能,但不能保证。如果您想要一个保证能够表示 a 的无符号整数类型void *,请参阅uintptr_t。
uintptr_t