#include "stdio.h"
main()
{ int c[]={23,1,56,234,7,0,34},i,j,t;
for(i=1;i<7;i++)
{ t=c[i];j=i-1;
while(j>=0 && t>c[j])
{ c[j+1]=c[j];j--;}
c[j+1]=t;}
for(i=0;i<7;i++)
printf("%d ",c[i]);
putchar(′/n′);}
A.对数组元素的升序排列
B.对数组元素的降序排列
C.对数组元素的倒序排列
D.对数组元素的随机排列
[单选题]阅读下面程序,则程序段的功能是#include "stdio.h"main(){ int c[]={23,1,56,234,7,0,34},i,j,t;for(i=1;i<7;i++){ t=c[i];j=i-1;while(j>=0 && t>c[j]){ c[j+1]=c[j];j--;}c[j+1]=t;}for(i=0;i<7;i++)printf("%d ",c[i]);putchar(′/n′);}A.对数组元素的升序排列B.对数组元素
[单选题]阅读下面程序,则程序段的功能是 #include"stdio.h" main() { int c[]={23,1,56,234,7,0,34},i,j,t; for(i=1;i<7;i++) { t=c[i];j=i-1; while(j>=0&&t>c[j]) { c[j+1]=c[j];j--;} c[j+1]=t} for(i=0;i<7;i++) printf("%d",c[i]); putchar('/n');}A.对数组元素的升序排列B.对数组元素的降序排
[单选题]阅读下面程序段,则执行后的结果为#include "stdio.h"main(){ int m=4,n=2,k;k=fun(m,n);printf("%d/n",k);}fun(int m,int n){ return(m*m*m-n*n*n);}A.64B.8C.56D.0
[单选题]阅读下面程序段,则执行后的结果为#include "stdio.h"main(){int m=4,n=2,k;k=fun(m,n);printf("%d\n",k);}fun(int m,int n){return(m*m*m-n*n*n);}A.64B.8C.56D.0
[单选题]阅读如下程序段#include "stdio.h"main(){ int x,a,b;scanf("%d",&x);a=b=x;for(;x!=0;){ if(x输入后输出结果是A.a=7569,b=789B.a=5,b=365C.a=7,b=789D.a=7569,b=5
[单选题]阅读下面程序段,则执行后输出的结果是#include "stdio.h"main(){ char fun(char,int);char a=′A′;int b=13;a=fun(a,b);putchar(a);}char fun(char a,int b){char k;k=a+b;return k;}A.AB.MC.ND.L
[单选题]阅读下面程序,则程序执行后的结果为#include "stdio.h"main(){int a=4,b=6,c=7;double d,fun(int,int,int);d=fun(a,b,c);printf("%lf\n",d);}double fun(int a,int b,int c){double s;s=a%b*c;return s;}A.27B.27.000000C.28D.28.000000
[单选题]阅读下面程序,则执行后的结果是#include "stdio.h"main(){ char str[]="tomeetme",*p;for(p=str;p<str+7;p+=2)putchar(*p);printf("/n");}A.tomeetmeB.tmemC.oeteD.tome
[单选题]阅读下面程序,则执行后的结果是#include "stdio.h"main(){ char str[]="tomeetme",*p;for(p=str;p<str+7;p+=2)putchar(*p);printf("/n");}A.tomeetmeB.tmemC.oeteD.tome
[单选题]阅读下面程序,则执行后的结果为#include "stdio.h"main(){ char *str="abcdefghijklmnopq";while(*str++!=′e′);printf( "%c\n",*str);}A.fB.aC.eD.q