【单选题】
设enumcolor{red,yellow=2,blue,white,black}r=white;,执行printf("%d",r);后的输出结果是( )
【单选题】
以下程序段输出的结果是)a=-1;do{a=aa;}whilea<0);
【简答题】
下列程序的输出结果是[填空1]。#includestdio.hmain(){ char a;a=0printf(%d%c,a,a); }
【单选题】
以下程序段的输出结果是( )。
int a=12345;
printf(%2d\n, a);
【单选题】
程序cout<< setw(3)<< 25<< oct<< 25<< hex<< endl;的输出结果是()。
【单选题】
下列程序执行后的输出结果是() void func1(a) { switch(a) { case 1:printf(good); case 2:printf(nice); default:printf(end); } } main( ) { int i=2; func1(i); printf(\n); }
【单选题】
下列程序执行后的输出结果是
#includevoid main( )
{ int a=5,b=60,c;
if (ab)
{c=a*b;printf(%d*%d=%d\n,b,a,c);}
else
{c=b/a;printf(%d/%d=%d\n,b,a,c);}
}
【单选题】
语句:printf("%d",(a=2)&&(b=-2));的输出结果是()