#include <stdio.h>
当前位置:首页 > C语言开发工程师 > 正文内容

有以下程序
#include <stdio.h>

有以下程序
#include <stdio.h>
#include <string.h>
Void fun(char *s[],int n)
{ char *t; int i,j;
For(i=0;i<n-1;i++)
For(j=i+1;j<n;j++)
If(strlen(s[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.xy,aaaacc

B.aaaacc,xy

C.bcc,aabcc

D.aabcc,bcc

正确答案是A

扫描二维码免费使用微信小程序搜题/刷题/查看解析。

版权声明:本文由翰林刷题小程序授权发布,如需转载请注明出处。

本文链接:https://20230611.cn/post/3214211.html