单项选择题

有下列程序:
#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.abcd
D.abcdefghijk

<上一题 目录 下一题>
热门 试题

单项选择题
以下程序的输出结果是______。 int f() static int i=0; int s=1; s+=i; i++; return s; main() int i, a=0; for(i=0; i<5; i++) a+=f(); printf( % d n , a);
A) 20
B) 24
C) 25
D) 15
单项选择题
若有以下程序段: struct st int n; int*m: ; int a=2,b=3,c=5; struct st s[3]=(101,&a,102,&c,103,&b); main() struct st*p; p=s; 则以下表达式中值为5的是()。

A. (*p).m
B. *(p+1)->m
C. *(p++)->n
D. (p++)(*m)

相关试题
  • 以下程序运行后的输出结果是 。 #includ...
  • 以下fun函数的功能是在N行M列的整型二维数...
  • 以下程序中函数fun的功能是:构成一个如图...
  • 以下程序的输出结果为______。 #de...
  • 下面程序的功能是输出数组s中最大元素的下...