首页 > 高职专科
题目内容 (请给出正确答案)
[主观题]

有以下程序: include <stdio.h> struct N0DE {int hum;struct N0DE*nex

t;}; main() { struct N0DE*P,*q,*r; p=(struct N0DE*)mall0C(sizeof(struct N0DE)); q=(struer N0DE*)malloc(siZe0f(struer N0DE)); r=(Struct N0DE*)malloc(Sizeof(Struct N0DE)); p一>num=10;q一>num=20; r一>num=30; P一>next=q;q一>next=r; printf(“%d\n”,P一>num+q一>next一>hum); ) 程序运行后的输出结果是()。

A.10

B.20

C.30

D.40

查看答案
答案
收藏
如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
更多“有以下程序: include <stdio.h> struc…”相关的问题
第1题
有以下程序()

A.#include

B.02356

C.0235

D.235

E.2356

点击查看答案
第2题
有以下程序()

A.#include

B.x=4

C.x=8

D.x=6

E.x=12

点击查看答案
第3题
有以下程序()

A.#include

B.abcdef

C.ABCDEF

D.aBcDeF

E.AbCdEf

点击查看答案
第4题
有以下程序#include<stdio.h>main(){int a=7; while(a--); printf("%d\n",a);}程序运行后

有以下程序

#include<stdio.h>

main()

{ int a=7;

while(a--);

printf("%d\n",a);

}

程序运行后的输出结果是

A.-1

B.0

C.1

D.7

点击查看答案
第5题
有以下程序:#include<stdio.h>main(){int a [10]={1,2,3,4,5,6,7,8,9,10},*p=&a[3], *q=p+2;

有以下程序: #include <stdio.h> main() { int a [10]={1,2,3,4,5,6,7,8,9,10},*p=&a[3], *q=p+2; prinff("%d\n";*p+*q); } 程序运行后的输出结果是()。

A.16

B.10

C.8

D.6

点击查看答案
第6题
有以下程序 #include <stdio.h> int fun(int a, int b) { if(b==0) return a;

有以下程序 #include <stdio.h> int fun(int a, int b) { if(b==0) return a; else return(fun(-a,-b)); } main() { printf("%d\n",fun(4,2)); } 程序的运行结果是______。

A.1

B.2

C.3

D.4

点击查看答案
第7题
有以下程序#include<stdio.h>main(){char s[]="159",*P;p=s;printf("%C",*p++);printf("%C",*p++

有以下程序

#include<stdio.h>

main()

{char s[]="159",*P;

p=s;

printf("%C",*p++);

printf("%C",*p++);

}

程序运行后的输出结果是______。

点击查看答案
第8题
有以下程序: #include<stdio.h> main { char s[]="rstuv"; printf("%c\n",*s+2); }

有以下程序: #include<stdio.h> main { char s[]="rstuv"; printf("%c\n",*s+2); } 程序运行后的输出结果是()。

A.tuv

B.字符t的ASCIl码值

C.t

D.出错

点击查看答案
第9题
有以下程序#include <stdio.h>main(){ int x=1, y=2, z=3; if(x>y) if(y<z) printf(

有以下程序#include <stdio.h>main() { int x=1, y=2, z=3; if(x>y) if(y<z) printf("%d", ++z); else printf("%d", ++y); printf("%d\n", x++);}程序的运行结果是A.331 B.41 C.2 D.1

点击查看答案
第10题
有以下程序 include<stdio.h> yoidfun(char**p) {++p;printf(%sha,*p);} main() {char*

有以下程序 include<stdio.h> yoidfun(char**p) {++p;printf(%sha,*p);} main() {char*a[]=(Morning,Aftemoon,Eyening,Night); fun(a); } 程序的运行结果是

A.ffemoon

B.Morning

C.oming

D.Afternoon

点击查看答案
退出 登录/注册
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改