下面程序的功能是输出数组 s 中最大元素的下标,请填空。 void main( ) { int k, p; int s[ ]={1,-9,7,2,-10,3}; for(p=0,k=p; p<6; p++) if(s[p]>s[k]) ; printf("%d\n" ,k); }
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【简答题】Directions: The following is a letter. After reading it, you should complete the information by filling in the blanks marked 1 to 5 in no more than 3 words in the table below. Dear Sirs, I have just r...
【简答题】Directions: The following is a letter. After reading it, you should complete the information by filling in the blanks marked 1 to 5 in no more than 3 words in the table below. Dear Sirs, I have just r...