判断char型变量ch为数字字符的正确表达式是()

判断char型变量ch为数字字符的正确表达式是()

A.ch〉="0"&&ch〈="9"

B.ch〉='0'&&ch〈='9'

C.'0'=〈ch〈='9'

D.ch〉='0'||ch〈='9'

正确答案:B

猜你喜欢