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

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

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

2009 年高考 五、程序分析题(本大题共 3 小题,共 75 分) 30、阅读程序,写出运行结果。(每小题 5 分,共 25 分) (1) #include stdio.h main() { struct stu{ char name[10]; int age,sex; } printf(%d,sizeof(struct stu)); } (2) #include stdio.h main() { int x=68; printf(%c,%d,x,~x); } (3) #include stdio.h #include math.h main() { double x=5.14; int a=(int)floor(x); int b=(int)pow(floor(x),3); printf(%d,%d,a,b); } (4) #include stdio.h main() { char **p,*t[]={computer,phone,mp4}; for(p=t+2;p=t,p--) printf(%c ,*(*p+1)); } (5) #include stdio.h f(int arr[]) { int i=0; for(;arr[i]=10;i+=2) printf(%d,arr[i]); } m

文档评论(0)

1亿VIP精品文档

相关文档