单项选择题

已有定义:char c;,程序前面已在命令行中包含ctype.h文件。不能用于判断c中的字符是否为大写字母的表达式是( )。

A.isupper(c)
B.'A'<=c<='Z'
C.'A'<=c&&c<='Z'
D.c<=('z'-32)&&('a'-32)<=c
<上一题 目录 下一题>
热门 试题

单项选择题
有以下程序: #include<stdio.h> main() printf( %d n ,NULL); 程序运行后的输出结果是( )。
A.0
B.1
C.-1
D.NULL没定义,出错
单项选择题
有以下程序: #include <string.h> main() char p[]='a','b','c',q[10]='a','b','c'; printf( %d %d n ,strlen(p),strlen(q)); 以下叙述中正确的是( )。
A.在给p和q数组置初值时,系统会自动添加字符串结束符,故输出的长度都为3
B.由于p数组中没有字符串结束符,长度不能确定;但q数组中字符串长度为3
C.由于q数组中没有字符串结束符,长度不能确定;但p数组中字符串长度为3
D.由于p和q数组中都没有字符串结束符,故长度都不能确定
相关试题
  • 以下程序企图把从终端输入的字符输出到名为...
  • 有以下程序: fun(int x,int y) sta...
  • 有以下程序: #include <stdlib.h> ...
  • 有以下程序: int a=4; int f(int...
  • 以下程序中函数sort的功能是对a所指数组中...