单选题:if语句的语法格式可描述为: 格式l:if(<条件>)<语句>或 格式2:if(<条件>)<语句l>else<语句2>关

  • 题目分类:C++
  • 题目类型:单选题
  • 号外号外:注册会员即送体验阅读点!
题目内容:
if语句的语法格式可描述为:
格式l:if(<条件>)<语句>

格式2:if(<条件>)<语句l>
else<语句2>
关于上面的语法格式,下列表述中错误的是( )。 A.<条件>部分可以是一个if语句,例如if(if(a==0)…)…
B.<语句>部分可以是一个if语句,例如if(…)if(…)…
C.如果在<条件>前加上逻辑非运算符!并交换<语句l>和<语句2>的位置,语句功能不变
D.<语句>部分可以是一个循环语句,例如if(…)while(…)…

参考答案:【答案仅供学习,请勿对照自行用药等】
答案解析:

What does the writer say about the consistency of quality i

What does the writer say about the consistency of quality in service?A.It is im

查看答案

Its price includes living accommodation.

Its price includes living accommodation.

查看答案

What do we learn about the change in America fashion indust

What do we learn about the change in America fashion industry? A.It has attract

查看答案

Mr.Benn is attracted to the vacancy because it offers bette

Mr.Benn is attracted to the vacancy because it offers betterA.career prospects.

查看答案

After age__________job hunting becomes even more difficult.

After age__________job hunting becomes even more difficult.A.6O B.50 C.4O

查看答案