语句cout<<(a=2)&&(b=-2);的输出结果是
A.无输出
B.编译错误
C.-1
D.1
第1题:
语句:“printf("%d",(a=)&&(b=-2));”的输出结果是( )。
A.无输出
B.结果是不确定
C.-1
D.1
第2题:
语句printf(“%d”,(a=2)&&(b= -2));的输出结果是
A.-1
B.0
C.1
D.无输出
E.编译错误
第3题:
【单选题】语句:printf("%d",(a=2)&&(b= -2);的输出结果是()。
A.无输出
B.结果不确定
C.-1
D.1
第4题:
语句cout <<(a=2)&&(b=-2);的输出结果是
A.无输出
B.编译错误
C.-1
D.1
第5题:
13、有下面语句段,输出结果为_____。 using namespace std; #include <iostream> int main(){ char c = 'B'; switch (c) { case 'A':cout << "1"; case 'B':cout << "2"; case 'C':cout << "3"; default: cout << "4"; } return 0; }
A.2
B.23
C.234
D.编译错误