首页题目详情

以下代码的执行结果是? int x = 5; if (x < 10) { printf("x is less than 10"); } else { printf("x is greater or equal to 10"); }

题目配图
A.x is less than 10
B.x is greater or equal to 10
C.输出两个语句
D.无输出

优质解答

答案

A

解析

由于 `x` 的值是5,小于10,所以执行 `if` 分支,输出 "x is less than 10"。

查看答案和解析

支付 ¥0.1 即可查看此题答案和详细解析

低至 ¥0.1 起

计算机基础与程序设计单选题中等AI生成