若有定义“int a,b;double x;”,则以下不符合C语言表达式的是( )
A. x%(-3)
B. a+=-2
C. a=b=2
D. x=a+b
查看答案
判断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");