#include<stdio.h> #include <stdlib.h> #include <time.h> int search(int key, int a[], int length); int main() { // int a[13] ={ [1]=2,4,[5]=6}; //稀疏的元素 //int i; int loc; ,,,,,,,,,}; //printf("%d\n", sizeof(a)); //printf("%d…
第八章 数组 //L8-1 #include <stdio.h> int main() { int score1, score2, score3, score4, score5; int totalScore; printf("Input the scores of ten students:\n"); scanf("%d", &score1); scanf("%d", &score2); scanf("%d…