第19740题 判断题
判断当整型变量N为12时,C++语句`cout<<((10<=N<=12)?"true":"false")`输出为true的原因解释是否正确

C++语句

cout << ((10 <= N <= 12) ? "true" : "false");

中,假设整型变量N为12,现有表述为:其输出为true,原因是执行10 <= N后其值为true,true与12相比仍然是true。

{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析