下面程序用“顺序查找法”查找数组 a 中是否存在某一关键字。则1是 ( ) 、2是 ( ) 。 main() {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); 1 ; } if ( 2 ) printf("Can't found!"); }
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
皮皮学刷刷变学霸
举一反三
【简答题】Every day we go to school and listen to teachers, and the teacher will ask us some questions. Sometimes, the classmates will ask your opinions of the work of the class. When you are telling others in ...
【简答题】Everyday we go to school and listen to the teacher, and the teacher will ask us some questions. Sometimes, the classmates will ask your opinions of the work of the class. When you are telling others i...