单项选择题

有以下程序
main()
int a=5,b=4,c=3,d=2;
if(a>b>C)
printf("%d\n",D) ;
else if((c-1>=D) ==1)
printf("%d\n",d+1);
else
printf("%d\n,d+2);
执行后输出的结果是

A.2
B.3
C.4
D.编译时有错,无结果
<上一题 目录 下一题>
热门 试题

单项选择题
有以下程序: #inClude <stdlib.h> struct NODE int num; struct NODE *next; ; main() Struct N00E *p,*q,*r; int sum;0; p=(struct NODE *)malloc(sizeof(struct NODE)); q=(struct NODE *)malloc(sizeof(struct NODE)); r=(struct NODE *)malloc(Sizeof(struct NODE)); p->num=1;q->num=2;r->num=3; p->next=q;q->next=r;r->next=NULL; sum+=q->next->num;sum+=p->num; printf( %d n ,sum); 执行后的输出结果是
A.3
B.4
C.5
D.6
单项选择题
有以下程序段 typedef struct NODE int num; struct NODE *next; OLD; 以下叙述中正确的是
A.以上的说朗形式非法
B.NODE是一个结构体类型
C.OLD是一个结构体类型
D.OLD是一个结构体变量
相关试题
  • 有以下程序 int *f(znt *x,int *y...
  • 有以下程序 struct STU char name[1...
  • 有以下程序,其中函数f的功能是将多个字符...
  • 以下程序十函数scmp的功能是返回形参指针s...
  • 有以下程序 float fl(float n) retur...