以下程序执行后的输出结果是_______。#inlude main(){ int a=5,b=4,c=3,d=1;d=(a>b>c);printf("%d\n",d); }
查看答案
以下程序执行后的输出结果是_______。#inlude main(){ int a=2,b=7,c=5;switch(a>0){case 1:switch(b<10){ case 1: printf("@");break;case 0: printf("!");break;}case 0:switch(c==5){ case 0: printf("*");break;case 1: printf("#");break;default: printf("%");break; }default:{ case 1: printf();break; printf("&");}printf("\n");}
A. !*
B. @!
C. @%
D. @
E. &
若有定义:float x=1.5;
A. switch(a+b){ case 1: printf("*\n");case 2+1: printf("**\n"); }
B. switch((int)x);{ case 1: printf("*\n");case 2: printf("**\n"); }
C. switch(x){ case 1.0: printf("*\n");case 2.0: printf("**\n"); }
D. switch(a+b){ case 1: printf("*\n");case c: printf("**\n"); }
有以下程序
A. 2
B. 0
C. 1
D. 3
若运行时输入:16,则以下程序的运行结果是#include void main(void){intyear;printf("Inputyour year:");scanf("%d",&year);if(year>=18)printf("your$4.5 yuan/xiaoshi");elseprintf("your$3.0 yuan/xiaoshi"); }