问题
单项选择题
下列程序执行后的输出结果是( )。
void func(int *a,intb[])
b[0]=*a+6;
main()
int a,b[5];
a=0; b[0]=3;
func(&a,b);printf("%d\n",b[0]);
A.6
B.7
C.8
D.9
答案
参考答案:A
解析: 函数func的功能是将第一个参数所指向的内容与6的和赋给第二个参数数组中的第一个值。