问题 填空题

以下程序的功能是:借助指针变量找出数组元素中的最大值及其元素的下标值。请填空。

  #include

  main()

  { 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= ();

  printf(“index=%d\n”,s-a);

  }

答案

参考答案:s+1

多项选择题
单项选择题