填空题 C语言
题号 #152505

下面的程序实现的是指针p所指向的地址的n个数中,求出最大的和最小的数据,请填空。 
fun(int *p,int n) 
{int *q; 
int max,min;  
max=min=*p;  
for(q=p; 【11】 ;q++)  
if( 【12】 )max=*q;  
else if( 【13】 )min=*q;  
}

进入在线模考

参考答案

暂无

答案解析

q<p+n;.*q>max;.*q<min

你可能感兴趣的试题

找试题 · 找答案 · 找资料 在线模考