下面程序的输出结果是( )。
#include<iostream>
using namespace std;
int main( )
int a=2,b= -1,c=2;
if(a<b)
if(b<0)
c=0;
else c+=1;
cout<<c<<endl;
return 0;
题库:计算机等级考试
类型:最佳选择题
时间:2017-07-03 15:45:58
免费下载:《单项选择》Word试卷
下面程序的输出结果是( )。
#include<iostream>
using namespace std;
int main( )
int a=2,b= -1,c=2;
if(a<b)
if(b<0)
c=0;
else c+=1;
cout<<c<<endl;
return 0;
B.1
C.2
D.3
本题关键词:输出结果,面试程序,竣工结算程序,结果,肝糖输出,输出浓度,程序,结果均,下果藤,出疹顺序;