有以下程序
#include
#include
void fun(char *s[], int n)
{ char *t; int i, j;
for (i=0; i strlen(s[j]))
{ t = s[i]; s[i] = s[j]; s[j] = t; }
}
main()
{ char *ss[]={"bcc","bbcc","xy", "aaaacc", "aabcc"};
fun(ss, 5); printf("%s,%s\n", ss[0],ss[4]);
}
程序的运行结果是
- A.aaaacc,xy
- B.xy,aaaacc
- C.bcc,aabcc
- D.aabcc,bcc
热度🔥1,511
解析:打开微信小程序查看本题解析