问题

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

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;

参考答案
您可能感兴趣的试题
  • 以下叙述中错误的是A)gets 函数用于从终端读入字符串B)getchar 函数用于从磁盘文件读入字符C)fputs 函数用于把字符串输出到文件D)fwrite 函数用于以二进制形式输出数据到文件
  • 有以下程序#include main(){ int s[12]={1,2,3,4,4,3,2,1,1,1,2,3},c[5]={0},i;for(i=0;i<12;i++) c[s[
  • 有以下程序#include void fun(int *s,int nl,int n2){ int i,j,t;i=nl; j=n2;while(i
  • 有以下程序#include int f(int x){ int y;if(x==0||x==1) return(3);y=x*x-f(x-2);return y;}main( ){i
  • 有以下程序#include void fun(char *a,char *b){ while(*a==*) a++;while(*b=*a) {b++;a++;}}main( )
  • 有以下程序#include main(){ FILE *fp; int a[10]={1,2,3},i,n;fp=fopen(dl.dat,w);for(i=0;i<3;i+