判断char类型的变量c1是否为数字字符的正确表达式为 ( )
A. (c1>=0)&&(c1<=9)
B. (c1>= '0 ')&&(c1<= '9')
C. '0'<=c1<= '9 '
D. (c1>= '0 ')||(c1<= '9 '
查看答案
判断char类型的变量c1是否为英文小写字母的正确表达式为 ( )
A. (c1>=a)&&(c1<=z)
B. (c1>= 'a ')&&(c1<= 'z')
C. 'a'<=c1<= 'z'
D. (c1>= 'a')||(c1<= 'z'
C语言为表示关系x
A. (x B. (x C. (x D. (x
有两个字符数组m、n,则如下正确的输入句式 ( )
A. gets(m,n)
B. scanf("%s%s",m,n);
C. scanf("%s%s",&m,&n);
D. gets("m"),gets("n");
有两个字符a、b,则如下正确的输入句式 ( )
A. getchar(a,b)
B. scanf("%c%c",a,b);
C. scanf("%c%c",&a,&b);
D. getchar("a"),getchar("b");