单项选择题

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

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

<上一题 目录 下一题>
热门 试题

单项选择题
有以下结构体说明和变量定义,如图所示, 指针p、q、r分别指向此链表中的三个连续结点。 Struct node int data; struct node *next;*p,*q,*r; 现要将q所指结点从链表中删除,同时要保持链表的连续, 以下不能完成指定操作的语句是()。

A. p->next=q->next;
B. p->next=p->next->next;
C. p->next=r;
D. p=q->next;

单项选择题
下面结构体的定义语句中,错误的是()

A. struct ordint x; int y; int z;; struct ord a;
B. struct ordint x; int y; int z; struct ord a;
C. struct ordint x; int y; int z; a;
D. structint x; int y; int z; a;

相关试题
  • 下列程序运行后的输出的结果是______...
  • k
  • 以下程序的输出结果是______。 #in...
  • 下列程序段的运行结果是______。 in...