【单选题】
若有下面定义,能打印出字母L的语句是()。structclass{charname[8];intage;};structclasss[12]={"Zheng",16,"Lin",18,"Yang",19,"Guo",20};
①
printf("%c\n",s[1].name[0]);
②
printf("%c\n",s[2].name[0]);
③
printf("%c\n",s[1].name);
④
printf("%c\n",s[2].name);
【单选题】
以下程序的运行结果是()。func(inta,intb){intc;c=(ab)?(a-b):(a+b);return(c);}main(){intx=7,y=3;printf("%d\n",func(x,y));}
【单选题】
设enumcolor{red,yellow=2,blue,white,black}r=white;,执行printf("%d",r);后的输出结果是( )