思路:在main函数定义字符指针数组char* arr[5]={“wangdao”,”fenghua”,”xianyu”,”loulou”,”longge”} ,还有char* big1,char* big2,把&big1和&big2传递给big函数,最终big函数执行结束后,big1指向最大字符串,big2指向次大字符串
```c
#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
void big(char** arr, int size, char** big11, char** big22) {
*big11 = strcmp(arr[0],arr[1]) >= 0 ? arr[0]:arr[1];
*big22 = strcmp(arr[0], arr[1]) < 0 ? arr[0] : arr[1];
for (int i = 2; i < size; i++) {
if (strcmp(arr[i], *big11) > 0) {
*big22 = *big11;
*big11 = arr[i];
}
else if(strcmp(arr[i], *big22) > 0){
*big22 = arr[i];
}
}
}
int main() {
char *arr[5] = {"loulou","longge","wangdao","fenghua","xianyu" };
char *big1,*big2;
big(arr,5,&big1,&big2);
printf("big1=%s,big2=%s\n", big1, big2);
return 0;
}