A、int fun(double x[10], int *n)
B、则下面针对此函数的函数声明语句中正确的是
C、A)int fun(double x, int *n);
D、B)int fun(double , int );
E、C)int fun(double *x, int n);
F、D)int fun(double *, int *);
查看答案
正确答案
试题解析
答案 D解析 : 函数首部 int fun(double x[10],int *n) 表示这个函数的返回值是整型,其第 1 个形式参数是一个双精度的一维数组,第 2 个参数是一个整型指针。在 C 语言中,一维数组的名字表示的是一维数组的地址,所以选项D是正确的。