已知过程GetData的定义如下:
Private Sub GetData( ByRef f As Integer )
f = f + 2
End Sub
若在主调过程中采用的调用语句是"Call GetData(J+5)",则下列选项中正确的是
- A.由于形式参数被说明为ByRef,则实际参数不能是表达式
- B.由于形式参数被说明为ByRef,则实际参数应该使用数组名
- C.将表达式J+5的值传递给变量f,并将f的计算结果返回变量J中
- D.将表达式J+5的值传递给变量f,但不会将f的计算结果返回变量J中
热度🔥454
解析:打开微信小程序查看本题解析
有以下程序:
#include
void fun( int a, int b )
{ int t;
t=a; a=b; b=t;
}
main()
{ int c[10]={1,2,3,4,5,6,7,8,9,0}, i;
for (i=0; i<10; i+=2) fun(c[i], c[i+1]);
for (i=0;i<10; i++) printf("%d,", c[i]);
printf("\n");
}
程序的运行结果是( )。
有以下程序
#include
#include
void fun( int *p1, int *p2, int *s)
{ s=( int*)calloc(1,sizeof(int));
*s=*p1+*p2;
free(s);
}
main()
{ int a[2]={1,2}, b[2]={40,50},*q=a;
fun(a,b,q);
printf("%d\n", *q);
}
程序运行后的输出结果是
下列选项中用于完成创建任务的自用栈空间的μC/OS-II程序源代码的是( )。
下列关于数据挖掘的叙述中,哪一条是错误的?