A-A+

在C语言中 定义一个函数 f1如下:f1(intx int y)4{static int c

2022-08-12 19:49:41 问答库 阅读 197 次

问题详情

在C语言中,定义一个函数 f1如下:
f1(intx,int y)
4
{
static int count=0;
int temp;
temp=x;
x=y;
y=temp;
count++;
}
则下列叙述正确的是()。
A.变量count为全局变量, temp为局部变量。
B.x,y属于函数的形式参数。
C.变量count,temp均为局部变量。
D.函数的功能是实现两个变量值的交换。
E.函数的默认返回值类型为 int,函数没有返回任何值。
F.变量count,temp为局部变量,所占空间在函数退出时释放。

参考答案

正确答案: B、C、E

考点:定义,语言