以下程序调用findmax函数返回数组中的最大值。<br class="markdown_return">Findmax(int

分类: C语言开发工程师 发布时间: 2023-11-03 11:13 浏览量: 0

以下程序调用findmax函数返回数组中的最大值。
Findmax(int *a,int n)
{int *p,*s;
For(p=a,s=a; p-a<n; p++)
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