填空题
以下程序的功能是:借助指针变量找出数组元素中的最大值及其元素的下标值。请填空。 #include main
1
{ int a[10],*p,*s; for(p=a;p-a<10;p++) scanf("%d",p); for(p=a,s=a;p-a<10;p++) if(*p>*s) s=
2
; printf(“index=%d/n”,s-a); }
1、
【正确答案】
1、s+1
【答案解析】
提交答案
关闭