请写出下列程的运行结果.pptVIP

  • 2
  • 0
  • 约1.84千字
  • 约 8页
  • 2018-10-18 发布于江苏
  • 举报
请写出下列程的运行结果

3. #includestdio.h void main() {char x=’B’,y=’0’; switch(x+2) {default: break; case ‘D’:y++; case ‘E’:y+=2;break; } printf(“%c”,y); } 7. #includestdio.h void main() {void chang1(int m,int n); int x,y,a,b; x=3;y=4; chang1(x,y); printf(“x=%d,y=%d\n”,x,y); } void chang1(int m,int n) {int t; t=m;m=n;n=t; } 8. #includestdio.h void main() {int x[10]={3,2,1,-5,8,5,6,7,8,9}; int t,m; m=x[0]; for(t=1;t10;t++) {if(mx[t]) m=x[t]; if(x[t]0) break; } printf(“%d”,m); } 9. #includestdio.h void main() {int x,y; x=3; if(x0) {if(x3) y=1; else y=2; } else y=0; printf(“%d\n”,y); } 11. #includest

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档