选择题 共29道
判断题 共11道
下列程序的输出结果是:( )
#include <iostream> using namespace std; int main(){ char c1='A',c2='B'; printf("%d %c",c2,c1); return 0; }
分析下列程序的输出结果:( )
#include <iostream> using namespace std; int main(){ int x = 2,y = 3,z = 4; if(x++<y){ x++; y++; }else ++z; cout<<x<<" "<<y<<" "<<z<<endl; return 0; }
有如下程序代码:
#include <iostream> using namespace std; int main(){ int k=60; while(k>1){ cout<<k; k=k/2; } return 0; }
上述程序的运行次数是:( )
若有如下语句:
int a,b,c;
a=b=c=5;
则执行语句:
b+=++a&&++c>b
后 a、b、c 的值分别为( )