填空题
以下程序段是函数返回a所指数组中最小的值所在的下标值,请在下划线处填空。
fun(int *a,int n)
int i,j=0,p;
p=j;
for(i=j;i<n;i++)
if(a[i]<a[p])______;
return(p);
【参考答案】
p=i
点击查看答案
<上一题
目录
下一题>
热门
试题
填空题
阅读下面的程序: #include <iomanip.h> void main() cout.fill(’!’); cout<<setiosflags( ios:: left)<<hex; cout<<setw(6)<<1024<<endl; 写出该程序的输出结果:______。
点击查看答案
填空题
若有如下程序段: #include <iostream> using namespace std; int main() char *p= abcdefgh ,*r; long *q; q=(long*)p;q++; r=(char *)q; cout<<r<<endl; return 0; 该程序的输出结果是______。
点击查看答案
相关试题
阅读以下程序: #include <iostream.h...
执行以下程序后,输出“#”号的个数是__...
以下程序的执行结果是______。 #in...
请定义一个函数名为A,返回值为int,没有参...