以下程序调用findmax函数返回数组中的最大值 findmax(int *a,int n) { int *p,*s; f
2023-12-011C语言
以下程序调用findmax函数返回数组中的最大值 findmax(int *a,int n) { int *p,*s; for(p=a,s=a; p-a if (______) s=p; return(*s); } main() { int x[5]={12,21,13,6,18}; printf("%d\n",findmax(x,5)); } 在下划线处应填入的是()。
A.p>s
B.*p>*s
C.a[p]>a[s]
D.p-a>p-s
正确答案是B
