网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
有以下程序
#include <stdio.h>
main()
{ char *a[]={"abcd","ef","gh","ijk"};int i;
for(i=0;i<4;i++) printf("%c",*a[i]);
}
程序运行后的输出结果是
A)aegi
B)dfhk
C) abc d
D)abcdefghijk
参考答案
更多 “ 有以下程序#include stdio.hmain(){ char *a[]={"abcd","ef","gh","ijk"};int i;for(i=0;i4;i++) printf("%c",*a[i]);}程序运行后的输出结果是A)aegiB)dfhkC) abc dD)abcdefghijk ” 相关考题
考题
(31)有以下程序#include stdio.hmain(){ char *a[ ]={“abcd”,”ef”,”gh”,”ijk”};int I;for (i=0;i4;i++) printf(“%c”,*a);}程序运行后输出的结果是A)aegi B)dfhk C)abcd D)abcdefghijk
考题
有以下程序includemain(){char*a[]={"abcd","ef","gh","ijk"};int i; for(i=0;i
有以下程序 #include<stdio.h> main() { char*a[]={"abcd","ef","gh","ijk"}; int i; for(i=0;i<4;i++) printf("%c",*a[i]); } 程序运行后的输出结果是______。A.ageiB.dfhkC.abcdD.abcdefghijk
考题
有以下程序includeincludevoidfun(char*s[],intn){char*t;int i,j;for(i=0
有以下程序 #include <stdio.h> #include <string.h> void fun(char *s[],int n) { char *t; int i,j; for(i=0;i<n-1;++) 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[]={"bccA.xy,aaaaccB.aaaacc,xyC.bcc,aabccD.aabcc,bcc
考题
有以下程序: #include 〈iostream〉 using namespace std; #define M 10 #define B4 void setstar(char *a, int n) { int i; for (i=0; iA.AB C D E F G H I JB.AB C D * * * * * *C.AB C D E F * * * *D.* * * * * * A B C D
考题
有下列程序: #includestdi0.h voidmain( ) {char*a[]={"abed","ef","gh","ijk");inti; for(i=0;i4;i++)printf("%C",*a[i]); } 程序运行后的输出结果是( )。A.aegiB.dfhkC.abedD.abcdcfghijk
考题
有下列程序:#includestdi0.hvoidmain(){char*a[]={abcd,ef,gh,ijk);inti;for(i=0;i4;i++)printf(%C,*a[i]);}程序运行后的输出结果是( )。A.aegiB.dfhkC.abcdD.abcdefghijk
考题
以下程序段的输出结果是 ______。includevoid main(){ char*p[5]={"ABCD","EF","GHI
以下程序段的输出结果是 ______。 #include<iostream.h> void main(){ char*p[5]={"ABCD","EF","GHI","JKL","MNOP"}; char **q=p; int i; for(i=0;i<=4;i++) cout<<q[i]; }A.ABCDEFGHIJKLB.ABCDC.ABCDEFGHIJKMNOPD.AEGJM
考题
有下列程序: #includestdi0.h voidmain() {char*a[]={"abcd","ef","gh","ijk");inti; for(i=0;i4;i++)printf("%C",*a[i]); } 程序运行后的输出结果是( )。A.aegiB.dfhkC.abcdD.abcdefghijk
考题
有下列程序:#includestdi0.hvoidmain( ){char*a[]={abed,ef,gh,ijk);inti;for(i=0;i4;i++)printf(%C,*a[i]);}程序运行后的输出结果是( )。A.aegiB.dfhkC.abedD.abcdcfghijk
热门标签
最新试卷