单项选择题
以下结构体类型说明和变量定义中正确的是( )。
A.typedef struct
int n;char c;REC;
REC t1,t2;
B.struet REC;
int n;char c;;
REC t1,t2;
C.typedef struct REC;
int n=0;char c='A';t1,t2;
REC t1,t2;
D.struct
int n;char c;REC;
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
有以下程序 #include<stdio.h> #include<string.h> typedef structchar name[9];char sex;float score[2];)STU; void f(STU a) STU b= Zhao ,'m',85.0,90.0);int i; strcpy(
A.name,
B.name);a.sex=b.sex:
for(i=0;i<2;i++)a.score[i]=b.score[i];
main()
STU c="Qian",'f',95.0,92.0;
f(c):
printf("%s,%c,%2.0f,%2.0f\n",
C.name,c.sex,c.score[0],c.score[1]);
程序的运行结果是( )。
点击查看答案&解析
单项选择题
以下选项中不属于字符常量的是( )。
A.'C'
B."C"
C.'\xCC0'
D.'\072'
点击查看答案&解析
相关试题
有以下程序 #include<stdio.h> main...
有以下程序 #include<stdio.h> void...
有以下程序 #include<stdiu.h> main...
有以下程序 #include<stdio.h> void...
有以下程序 #include<stdio.h> int ...