2008年湖南省计算机对口升学高考C语言.docVIP

  • 16
  • 0
  • 约3.13千字
  • 约 4页
  • 2023-05-10 发布于湖南
  • 举报

2008年湖南省计算机对口升学高考C语言.doc

2008年高考题 六、程序分析题(本大题共 3 题,共 75 分) 1、程序分析题。(每小题 5 分,共 25 分) (1) #include stdio.h main() { char a=55; a=~a055; printf(“%x,%o”,a,a); } 运行结果是 (2) #include stdio.h #define test(x,y) x+y main() { float c; c=2*test(3.2,5.4)/2; printf(%6.1f,c); } 运行结果是 (3) #include stdio.h void fun() { int x=1; static int y=1; printf(“%d%d”,++x,y++); } main() { int i; for (i=0;i2;i++) fun(); } 运行结果是 (4) #include stdio.h main() { int a=12,b=0,n=0; do { b+=2;a-=2+b; n++; }while (a=0); printf(“%d”,n); } 运行结果

文档评论(0)

1亿VIP精品文档

相关文档