int a=0,b=0,c=0; if(++a>0||++b>0) ++c;则a,b,c等于多少

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/06 01:04:37
int a=0,b=0,c=0; if(++a>0||++b>0) ++c;则a,b,c等于多少

int a=0,b=0,c=0; if(++a>0||++b>0) ++c;则a,b,c等于多少
int a=0,b=0,c=0; if(++a>0||++b>0) ++c;
则a,b,c等于多少

int a=0,b=0,c=0; if(++a>0||++b>0) ++c;则a,b,c等于多少
a=1,b=0 c=1
因为a先自加后1>0,所以不执行++b>0语句,所以b还是0