题目内容

以下对C语言中共用体类型数据的叙述正确的是()。A.可以对共用体变量名直接赋值B.一个共用体变量中可以同时存放其所有成员C.一个共用体变量中不可以同时存放其所有成员D.共用体类型定义中不能出现结构体类型的成员

查看答案
更多问题

设有以下说明:struct stud{char num[6];int s[4];double ave;}a;则变量a在内存所占字节数是( )。A.11B.5C.18D.22

枚举类型的关键字是______

输出程序运行结果。#include main(){enumweek{Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday};enum week day;int x;printf("please input a num:");scanf("%d",&x);day=(enum week)x;printf("Today is :");switch(day){case Sunday:printf("Sunday\n");break;case Monday: printf("Monday\n");break;case Tuesday: printf("Tuesday\n");break;case Wednesday: printf("Wednesday\n");break;case Thursday: printf("Thursday\n");break;case Friday: printf("Friday\n");break;case Saturday: printf("Saturday\n");break;}}

若有以下定义和语句以下是引用片段:#includeint a=4,b=3,*p,*q,*w;p=&a; q=&b; w=q; q=NULL;则以下选项中错误的语句是

A) *q=0;
B) w=p;
C) *p=a;
D) *p=*w;

答案查题题库