题目内容

输出程序运行结果。#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;

1.若p为指针变量,y为变量,则y = *p++;的含义是

A.y=*p;p++
B.y=(*p)++
C.y=p;p++
D.p++;y=*p

以下程序运行结果是___________ void main() { short ar[5]={1,2,3,4,5 }; short * par=&ar[1]; int i; for(i=0; i<4; i++){printf(“%d %d %d”,ar[i],par[i],*(ar+i));} }

答案查题题库