【发布时间】:2022-01-02 12:09:11
【问题描述】:
如标题。
void foo() {}
int main(void) {
foo(); // what is the value of this expression?
}
这是否意味着void 也是C 中的一种值?或者我应该怎么理解?
【问题讨论】:
-
更添混乱...
void不是真正的类型,但void *是... -
// what is the value of this expression?- 没什么,它只会执行foo()函数。
标签: c