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.
顺便说一句:这样的标准typedef将有助于减少C/C++中保留字的数量,并将void降级为简单的 类型声明,例如在<stddef.h>中。(参见AB33 /Mar 1972中的SRB - PDF=7kB)
这很投机。但一个很好的理由是因为voidis 不是一个空值;这是没有价值。例如,签名为 的函数int f(void)接受零个参数,而不是一个。
void
int f(void)