网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
(31)有以下程序
#include <stdio.h>
main()
{ char *a[ ]={“abcd”,”ef”,”gh”,”ijk”};int I;
for (i=0;i<4;i++) printf(“%c”,*a);
}
程序运行后输出的结果是
A)aegi B)dfhk C)abcd D)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 ” 相关考题
考题
有以下程序#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
考题
有以下程序:includevoid fun(char**p){++P;printf("%s\n",*p);}main()char*a[]={"Morn
有以下程序: #include<stdio.h> void fun(char**p) { ++P;printf("%s\n",*p);} main() char*a[]={"Morning","Afternoon","Evening","Night"}; fun(A); } 程序的运行结果是( )。A.AfternoonB.fternoonC.MorningD.oring
考题
有以下程序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
考题
有下列程序: #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
考题
有以下程序include.main(){char*p="abcde\ofghjik\0";printf("%d\n",strlen(p));} 程
有以下程序 #include.<string.h> main() { char *p="abcde\ofghjik\0"; printf("%d\n",strlen(p)); } 程序运行后的输出结果是A.12B.15C.6D.5
考题
有下列程序: #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
热门标签
最新试卷