【发布时间】:2020-08-08 11:37:46
【问题描述】:
给定以下 c 代码
static int x = 0;
int what_is_this(void) {
static int y = 5;
x = x + y;
y = y + 1;
return y;
}
int main(void) {
int v = what_is_this();
printf("%d\n", v);
return v;
}
关于链接器,what_is_this 是全局符号吗?
x 是本地符号吗?
v 没有注册为符号吗?
【问题讨论】:
标签: c