湖南省历界对口高中高考C语言真题.docxVIP

  • 33
  • 0
  • 约2.33万字
  • 约 54页
  • 2021-03-20 发布于山东
  • 举报
精品文档 精品文档 PAGE PAGE52 精品文档 PAGE 一、程序分析题 1、#include main() {intx=3; do printf( “%d”,x-=2); while(!(--x)); } 2、#include main() {intx=4,y=8,z;z=x2|y; printf(“%d”,z); }  历界高考C语言真题 2007年真题 1-2 24 eef 3、#include main() #* {charx=’E’,y=’e’;printf(“%c”,x+32);printf(“%c”,(x--,y++)); printf(“%c\n”,x==y?x+=32:(y-=32)); } 4、#include main() {intt=2;while(t5) switch(t%2) {case0:t++;printf( “#”);break; case1:t+=2;printf( “*”); default:printf( “\n”); } } 5、#include main() {charstr1[50]= ”Beijing2008 ”,*q=str1; charstr2[50]= ”OneworldOneDream! ”,*p=str2; while(*p!= ’\0’)p++; while(*q!= ’\0’)*p++=*q++; Oneworl

文档评论(0)

1亿VIP精品文档

相关文档