设整型变量a为5,使b不为2的表达式是


设整型变量a为5,使b不为2的表达式是

A.b=a/2

B.b=a%2

C.b=6-(--a)

D.b=a>3?2:1

正确答案:B


Tag:对象程序设计 表达式 变量 时间:2024-02-28 14:22:30