问题

有以下程序

#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

参考答案
您可能感兴趣的试题
  • 以下选项中正确的语句组是A)char s[]; s=BOOK!;B)char *s; s={BOOK!};C)char s[10]; s=BOOK!;D)char *s; s=BOOK!
  • 有以下程序#include int fun(int x,int y){ if(x==y) return (x);else return((x+y)/2);}main(){ int a
  • 设函数中有整型变量 n, 为保证其在未赋初值的情况下初值为 0, 应该选择的存储类别是A)autoB)registerC)staticD)auto 或 register
  • 有以下程序#include int b=2;int fun(int *k){ b=*k+b; return (b);}main(){ int a[10]={1,2,3,4,5,6,7
  • 有以下程序#include #define PT 3.5 ;#define S(x) PT*x*x ;main(){ int a=1, b=2; printf(%4.1f\n,S
  • 有以下程序#include struct ord{ int x,y; } dt[2]={1,2,3,4};main(){ struct ord *p=dt;printf(%d,,