Int x=2 (X>5)?x:2/xInt x=2(X>5)?x:2/x

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/27 05:04:21
Intx=2(X>5)?x:2/xIntx=2(X>5)?x:2/xIntx=2(X>5)?x:2/xIntx=2(X>5)?x:2/xIntx=2(X>5)?x:2/xIntx=2(X>5)?x:2

Int x=2 (X>5)?x:2/xInt x=2(X>5)?x:2/x
Int x=2 (X>5)?x:2/x
Int x=2
(X>5)?x:2/x

Int x=2 (X>5)?x:2/xInt x=2(X>5)?x:2/x
相当于
int x=2;
if(x>5) x;
else 2/x;
显然,x=2