填空题 下面程序用“顺序查找法”查找数组a中是否存在某一关键字。请填空。 main 1 { int a[8]={25,57,48,37,12,92,86,33}; int i,x; scanf(“/%d”,&x); for(i=0;i<8;i++) if(x==a[i]) { printf(“Found! The index is:/%d/n”,--i); 【1】; } if(【2】) printf(“Can’t found!”); }
  • 1、
【正确答案】 1、【1】break 【2】i==8    
【答案解析】