下面的代码片段会在标准输出中打印出什么结果?
main() {
void addup(int b);
addup(b);
return 0;
}
int b = 5;
void addup (int b) {
static int v1;
v1 = v1+b;
printf("%d ", v1);
}会导致编译错误
5
0
未定义值
下面的代码片段会在标准输出中打印出什么结果?
main() {
void addup(int b);
addup(b);
return 0;
}
int b = 5;
void addup (int b) {
static int v1;
v1 = v1+b;
printf("%d ", v1);
}会导致编译错误
5
0
未定义值