题目内容

有以下程序#include "stdio.h"struct NODE{ int num; struct NODE *next; }main(){ struct NODE *p,*q,*r;p=(struct NODE *)malloc(sizeof(struct NODE));q=(struct NODE *)malloc(sizeof(struct NODE));r=(struct NODE *)malloc(sizeof(struct NODE));p->num=10;q->num=20;r->num=30;p->next=q;q->next=r;printf("%d\n",p->num+q->next->num);}程序运行后的输出结果是

A. 10
B. 20
C. 30
D. 40

查看答案
更多问题

有以下程序#include "stdio.h"main(){ char *p,*q;p=(char *)malloc(sizeof(char)*20); q=p;scanf("%s%s",p,q); printf("%s%s\n",p,q);}若从键盘输入:abc def<回车>,则输出结果是

A. def def
B. abc def
C. abc d
D. d d

以下程序的输出结果是#include "stdio.h"int a[3][3]={1,2,3,4,5,6,7,8,9,},*p;main( ){ p=(int*)malloc(sizeof(int));f(p,a);printf("%d \n",*p);}f(int *s, int p[][3]){ *s=p[1][1]; }

A. 1
B. 4
C. 7
D. 5

桁架结构是由若干()在其两端用()连接而成的()结构体系,主要由()、()和()三部分组成,腹杆有()和()之分。

在房屋建筑中,桁架结构常用来作为屋盖的承重结构,通常称为()。

答案查题题库