以下程序段的输出结果是()。includemain(){char p[][4]={"ABC","DEF","GHI"};int i;for 以下程序段的输出结果是( )。 #include<stdio.h> main() {char p[][4]={"ABC","DEF","GHI"}; int i; for(i=0;i<3;i++) puts(p[i]); }A.A B CB.A D GC.A B C D E F G H ID.A B C

以下程序段的输出结果是()。includemain(){char p[][4]={"ABC","DEF","GHI"};int i;for

以下程序段的输出结果是( )。 #include<stdio.h> main() {char p[][4]={"ABC","DEF","GHI"}; int i; for(i=0;i<3;i++) puts(p[i]); }

A.A B C

B.A D G

C.A B C D E F G H I

D.A B C


相关考题:

下面程序的输出结果是______。 include main() {char *p[]="BOOL","OPK","H","SP"};int 下面程序的输出结果是______。 #include<stdio.h> main() { char *p[]="BOOL","OPK","H","SP"}; int i; for(i=3;i>=0;i-,i-) printf("%c",*p[i]); printf("\n"); }A.SOB.SPC.SPOPKD.SHOB

以下程序的输出结果是( )。 main() {char *p[]={"ABC","DEF","GHI","JKL"}; int i; for(i=3;i>=0;i--,i--) printf("%c",*p[i]);}

若有以下程序:includeint a[]={2,4,6,8};main(){int i; int *p=a; for(i=0;i 若有以下程序: #include<stdio.h> int a[]={2,4,6,8}; main() { int i; int *p=a; for(i=0;i<4;i++) a[i]=*p; printf("%d\n",a[2]); } 上面程序的输出结果是( )。A.6B.8C.4D.2

下面程序的输出结果是_______。includemain(){char*p[]={"DOOL","OPK","H","SP"}; int 下面程序的输出结果是_______。 #include<stdio.h> main() { char*p[]={"DOOL","OPK","H","SP"}; int i; for (i=3;i>=0;i-,i-) printf("%c",*p[i]); printf("\n"); }A.SOB.SPC.SPOPKD.SHOB

若有以下程序includeint a[]={2,4,6,8};main(){int i; int *p=a; for(i=0;i 若有以下程序 #include <stdio.h> int a[]={2,4,6,8}; main() { int i; int *p=a; for(i=0;i<4;i++)a[i]=*p; printf("%d\n",a[2]);} 上面程序输出结果是A.6B.8C.4D.2

以下程序段的输出结果是 ______。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 include main(){char *p[10]={"abc","aabdfg","dcdbe" 有以下程序: #include <stdio.h> #include <string.h> main() { char *p[10]={"abc","aabdfg","dcdbe","abbd","cd"}; printf("%d\n",strlen(p[4])); } 执行后的输出结果是( )。A.2B.3C.4D.5

以下程序运行后的输出结果是() 。   #include <stdio.h>   #include <stdlib.h>   #include <string.h>   main()   { char *p; int i;    p=(char *)malloc(sizeof(char)*20);    strcpy(p,"welcome");    for(i=6;i>=0;i--) putchar(*(p+i));    printf("n"); free(p);   }

运行以下程序,输出结果是 (27) #include <stdio.h> int main() { char *p[]={"ABC","DEF","GHI"}; puts(p[1]); return 0; }