题库 软件开发 题目列表 #include<iostream>   using namespace std; st...
多选题
#include<iostream>  
using namespace std;
static int test = 0;
void func(){}
int main()
{
 return 0;
}
A工程下的仅有a,b 这2个cpp文件,其中a.cpp代码如上,test变量的作用域是什么?
A.

a,b2个cpp文件里都能用test变量

B.

仅限在a.cpp里面使用

C.

仅限在main函数里使用

D.

仅限在func函数里面使用

E.

仅限在b.cpp里面使用

题目信息
校招真题
-
正确率
0
评论
10
点击