以下程序调用findmax函数返回数组中的最大值 findmax(int *a,int n) { int *p,*s; f

分类: 2019江中知识赛B(看题模式) 发布时间: 2023-12-01 12:13 浏览量: 1

以下程序调用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

E.B

F.1

正确答案是B