单选题
若变量c为char类型,则能正确判断出c为大写字母的表达式是( )
A、
(c>= 'A')||(c<= 'Z')
B、
'A'<=c<= 'Z'
C、
(c>= 'A')&&(c<= 'Z')
D、
('A'<=c)and ('Z'>=c)
【正确答案】
C
【答案解析】
提交答案
关闭