设有以下说明: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;
若有说明:int i, j=2,*p=&i;,则能完成i=j赋值功能的语句是
A) i=*p;
B) p*=*&j;
C) i=&j;
D) i=**p;