会的快帮帮忙呀
下四个程序中,完全正确的是 A)#include B)#include
main(); main()
{/*programming*/ {/*/programming/*/
printf(“programming!\n”); } printf(“programming!\n”);}
C) #include D) include
main() main()
{/*/*programming*/*/ {/*programming*/
printf(“programming!\n”);} printf(“programming!\n”);}
答案是B,错没呀?我觉得应该是C呀
若有定义:float x=1.5; int a=1,b=3,c=2;则正确的switch语句是
A)switch(x) B) switch((int)x);
{case 1.0: printf(“*\n”); {case 1: printf(“*\n”);
Case 2.0: printf(“**\n”); } case 2: printf(“**\n”);}
C) switch(a+b) D) switch(a+b)
{ case 1: printf(“*\n”); {case 1: printf(*\n”);
case 2+1: printf(“**\n”);} case c: printf(“**\n”);}
考查的是什么?我不知道怎么入手!郁闷死了