判断ch是数字字符的C语言表达式是( ) 。
A: '0' <= ch <= '9'
B: ch >= '0' && ch <= '9'
C: ch >= '1' && ch <= '10'
D: ! (ch < '0' || ch > '9')
E: ch >= '0' || ch <= '9'
A: '0' <= ch <= '9'
B: ch >= '0' && ch <= '9'
C: ch >= '1' && ch <= '10'
D: ! (ch < '0' || ch > '9')
E: ch >= '0' || ch <= '9'
举一反三
- 下面判断ch是大写或者小写英文字母的表达式哪个正确? A: ch >= 'A' && ch <= 'Z' || ch >= 'a' && ch <= 'z' B: ch >= A && ch <= Z || ch >= a && ch <= z C: 'A' <= ch <= 'Z' || 'a' <= ch <= 'z' D: A <= ch <= Z || a <= ch <= z
- 下列选项中用于判断ch是否是英文字母的表达式是( )。? ( ch >= 'a' && ch <= 'z' ) || ( ch >= 'A' && ch <= 'Z' )|;( 'a' <= ch <= 'z' ) || ( 'A' <= ch <= 'Z' )|( ch >= 'a' && ch <= 'z' ) && ( ch >= 'A' && ch <= 'Z' )|( 'a' <= ch <= 'z' ) && ( 'A' <= ch <= 'Z' )
- 判断字符型变量ch是否为数字的正确表达式是( ) A: ‘0’<=ch<=‘9’ B: (ch>=‘0’)&(ch<=‘9’) C: (ch>=‘0’)&&(ch<=‘9’) D: (‘0’<= ch)AND(‘9’>= ch)
- 判断字符变量ch是否为数字字符的正确表达式是( )。 A: (ch>=48) || (ch<=57) B: '0'<= ch <='9' C: (ch>=48) && (ch<=57) D: '0' >= ch >='9'
- 判断char型变量ch是否为数字字符的正确表达式是( )。 A: ‘0’<=ch<='9' B: ('0'<=ch)||(ch<='9') C: ('0'<=ch)&&(ch<='9') D: ('0'<=ch)and(ch<='9')