单项选择题

有以下程序: main() { int a=1,b=2,m=0,n=0,k; k=(n=b>a)||(m=a<b); printf("%d,%d\n",k,m); } 程序运行后的输出结果是( )。

A.0,0
B.0,1
C.1,0
D.1,1
<上一题 目录 下一题>
热门 试题

单项选择题
已有定义: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,
相关试题
  • 有以下程序: #include <string.h> ...
  • 以下程序企图把从终端输入的字符输出到名为...
  • 以下程序中函数sort的功能是对a所指数组中...
  • C
  • 有以下程序: #include <stdio.h> m...