单项选择题

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

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

单项选择题
有以下程序: #include <stdio.h> stxuct tt { int x;struct tt *y;}*p; struct tt a[4]={20,a+1,15,a+2,30,a+3,17,a}; main() { int i; p=a; for(i=1;i<=2;i++) {printf( %d, ,p->x ); p=p->y;} } 程序的运行结果是( )。
A.20,30,
B.30,17
C.15,30,
D.20,15,
单项选择题
若变量已正确定义,要求程序段完成求5!的计算,不能完成此操作的程序段是( )。
A.for(i=1,p=1;i<=5;i++) p*=i;
B.for(i=1;i<=5;i++){ p=1; p*=i;}
C.i=1;p=1; while(i<=5){p*=i; i++;}
D.i=1;p=1;do{p*=i; i++; } while(1<=5)
相关试题
  • 以下程序的输出结果是 【17】 。int f...
  • 下面程序的功能是建立一个有3个结点的单循...
  • 下面程序的运行结果是 【18】 。void ...
  • 有以下程序,其功能是:以二进制“写”方式...
  • 有以下程序:void f(int y,int *x)...