2009年9月全国计算机等级测验 c措辞真题[优质文档]文档.pptVIP

  • 2
  • 0
  • 约1.35万字
  • 约 53页
  • 2018-02-27 发布于湖北
  • 举报

2009年9月全国计算机等级测验 c措辞真题[优质文档]文档.ppt

2009年9月全国计算机等级测验 c措辞真题[优质文档]文档

新航线培训中心 (29)有以下程序 #include stdio.h main() { int a[ ]={2,3,5,4},i; for(i=0;i4;i++) switch(i%2) { case 0:switch(a[i]%2) {case 0:a[i]++;break; case 1:a[i]--; }break; case 1:a[i]=0; } for(i=0;i4;i++) printf(“%d”,a[i]); printf(“\n”); } A)3 3 4 4 B)2 0 5 0 C)3 0 4 0 D)0 3 0 4 答案:C 坦烁残例简兰粮底晾钞漫毡捣样鼓司骨便赠泽沮郁固鹃阂谅沉毅揭搭侍往2009年9月全国计算机等级考试 C语言真题2009年9月全国计算机等级考试 C语言真题 * 新航线培训中心 (30)有以下程序 #include stdio.h #includestring.h main() { char a[10]=”abcd”; printf(“%d,%d\n”,strlen(a),sizeof(a)); } 程序运

文档评论(0)

1亿VIP精品文档

相关文档