单项选择题

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

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;
<上一题 目录 下一题>
热门 试题

单项选择题
若程序有宏定义:#define N 100则以下叙述中正确的是______。
A) 宏定义中定义了标识符N的值为整数100
B) 在编译程序对C源程序进行预处理时用100替换标识符N
C) 对C源程序进行编译时用100替换标识符N
D) 在运行时用100替换标识符N
单项选择题
以下程序运行后的输出结果是 #include<stdio.h> struct st int x,y; data[2]=1,10,2,20; main( ) struet st *p=data; printf( %d, ,p->y);printf( %d n ,(++p)->x);
A) 10,1
B) 20,1
C) 10,2
D) 20,2
相关试题
  • 下列语句能循环______次。 int s=...
  • 以下程序的输出结果是 。 void reverse...
  • 有以下程序: float f1(float n) re...
  • 下面的程序实现的是从指针p所指向的地址的n...
  • 设有定义: struet person int ID;cha...