有以下程序:
#include <stdio.h>
typedef struct
int num; double s;REC;
void fun1(REC x)x.num=23; x.s=88.5;
main( )
REC a=16,90.0;
fun1(a);
printf("%d/n",a.num);

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

以下程序运行后的输出结果是______。
#include<stdio.h>
typedef struct
int num; double s; REC;
void fun1(REC x)x.num=23; x.s=88.5;
main( )
REC a=16, 90.0;
 fun1(a);
 printf("%d/n", a.num);

(48)~(50)以下程序的功能足:建立一个带有头结点的甲—向链表,并将存储在数组中的字符依次转存到链表的各个结点中,请从与下划线处号码对应的一组选项中选择出正确的选项。
#include <stdlib.h>
struct node
char data; struct node *next: ;
(48) CreatList(char *s)

struct node *h,*p,*q;
h = (struct node *)malloc sizeof(struct node));
p=q=h;
while(*s! =’/0’)

p = (struct node *)malloc(sizeof (struct node));
p->data = (49) ;
q->next = p;
q - (50) ;
S++;

p->next=’/0’;
return h;

main( )

char str[]="link list";
struct node *head;
head = CreatList(str);

A:char* B:struct node C:struct node* D:char


(48)~(50)题以下程序的功能是:建立一个带布头结点的单向链表,并将存储在数组中的字符依次存储到链表的各个结点中,请从与下划线处号码对应的一组选项中选择出正确的选项
  #include <stdlib.h>
  struct node
  char data; struct node *next;;
  (48) CreatList(char*s),
  struct node *h,*p,*q;
   h=(struct node*)malloc(sizeof(struct node));
   p=q=h;
   while(*s!="//0")
   p=(struct node*)malloc(sizeof(struct node));
    p->data= (49)
   q->next=p;
   q= (50)
   s++;
  
    p->next="//0";
    return h;
  
  main( )
   char str[]="link list";
    struct node*head;
    head=CreatList(str);
  …

A:char* B:struct node C:struct node* D:char

以下结构体类型说明和变量定义中正确的是________。

A:typedef struct int n; char c;REC; REC t1,t2; B:struct REC; int n; char c;; REC t1,t2; C:typedef struct REC; int n=0; char c='A';t1,t2; D:struct int n;char c;REC; REC t1,t2;

有以下程序 #include<stdio.h> typedef struct { int num;double s; }REC; void funl(REC *x) { x->num=23;x->s=88.5; } void main( ) { REC a={16,90.0}; fun1(&a); printf("%d/n",a.num); } 程序运行后的输出结果是______。

(48)~(50)题以下程序的功能是:建立一个带布头结点的单向链表,并将存储在数组中的字符依次存储到链表的各个结点中,请从与下划线处号码对应的一组选项中选择出正确的选项   #include <stdlib.h>   struct node   {char data; struct node *next;};   (48) CreatList(char*s),   {struct node *h,*p,*q;    h=(struct node*)malloc(sizeof(struct node));    p=q=h;    while(*s!="/0")   { p=(struct node*)malloc(sizeof(struct node));     p->data= (49) ;    q->next=p;    q= (50) ;    s++;   }     p->next="/0";     return h;   }   main( )   { char str[]="link list";     struct node*head;     head=CreatList(str);   …   }

A:char* B:struct node C:struct node* D:char

rec.autos.driving中的顶级域名为( )。

A:未列出 B:driving C:autos D:rec

rec.autos.driving中的顶级域名为( )。

A:未列出 B:driving C:autos D:rec

微信扫码获取答案解析
下载APP查看答案解析