有枚举类型的声明:enum WEEKDAY {Sun=7, Mon=1,Tue, Wed, Thu, Fri, Sat} workday;那么以下语句错误的是_____ A: enum WEEKDAY today=Fri;if( today >Fri) printf("Today is weekend!\n"); B: enum WEEKDAY today;today = (enum WEEKDAY)4;if( today >Fri) printf("Today is weekend!\n"); C: enum WEEKDAY today=Fri;tmp=today-2;if( tmp > 0) printf("Today is weekend!\n"); D: today = (enum WEEKDAY)4;if( today-2 > Fri) printf("Today is weekend!\n");
有枚举类型的声明:enum WEEKDAY {Sun=7, Mon=1,Tue, Wed, Thu, Fri, Sat} workday;那么以下语句错误的是_____ A: enum WEEKDAY today=Fri;if( today >Fri) printf("Today is weekend!\n"); B: enum WEEKDAY today;today = (enum WEEKDAY)4;if( today >Fri) printf("Today is weekend!\n"); C: enum WEEKDAY today=Fri;tmp=today-2;if( tmp > 0) printf("Today is weekend!\n"); D: today = (enum WEEKDAY)4;if( today-2 > Fri) printf("Today is weekend!\n");
以下关于枚举变量定义错误的是 A: enumweek{sun,mon,tue,wed,thue,fri,sat}weektest; B: enum{sun,mon,tue,wed,thue,fri,sat}weektest; C: enumweek{sun,mon,tue,wed,thue,fri,sat};enumweek weektest; D: enumweek{sun,mon,tue,wed,thue,fri,sat};
以下关于枚举变量定义错误的是 A: enumweek{sun,mon,tue,wed,thue,fri,sat}weektest; B: enum{sun,mon,tue,wed,thue,fri,sat}weektest; C: enumweek{sun,mon,tue,wed,thue,fri,sat};enumweek weektest; D: enumweek{sun,mon,tue,wed,thue,fri,sat};
有如下定义: enum weekday { sun, mon, tue=4, wed, thu, fri, sat } ; 则元素fri的值为_____________。(填阿拉伯数字)
有如下定义: enum weekday { sun, mon, tue=4, wed, thu, fri, sat } ; 则元素fri的值为_____________。(填阿拉伯数字)
以下关于枚举类型的声明正确的是_____ A: enum day={mon,tue,wed,thu,fri,sat,sun}; B: enum day{mon=1,tue,wed,thu,fri,sat,sun}; C: enum day{mon;tue;wed;thu;fri;sat;sun}; D: enum day{mon,tue,wed,thu,fri,sat,mon};
以下关于枚举类型的声明正确的是_____ A: enum day={mon,tue,wed,thu,fri,sat,sun}; B: enum day{mon=1,tue,wed,thu,fri,sat,sun}; C: enum day{mon;tue;wed;thu;fri;sat;sun}; D: enum day{mon,tue,wed,thu,fri,sat,mon};
【填空题】若有下列定义: enum week {sun=3,mon,tus,wed,thu,fri,sat}; 则元素值fri对应的序号值是
【填空题】若有下列定义: enum week {sun=3,mon,tus,wed,thu,fri,sat}; 则元素值fri对应的序号值是
设以下定义,值为5的枚举量是enumweek{sun,mon=4tue,wed,thu,fri,sat}w;() A: tue B: sat C: fri D: the
设以下定义,值为5的枚举量是enumweek{sun,mon=4tue,wed,thu,fri,sat}w;() A: tue B: sat C: fri D: the
5. It has _____ for the staff on the last Fri Theday of every month with free drinks.
5. It has _____ for the staff on the last Fri Theday of every month with free drinks.
设有以下定义,enum week{sun,mon=4,tue,wed,thu,fri,sat} w;值为5的枚举常量是( )。 A: tue B: sat C: fri D: thu
设有以下定义,enum week{sun,mon=4,tue,wed,thu,fri,sat} w;值为5的枚举常量是( )。 A: tue B: sat C: fri D: thu
设有以下定义,值为5的枚举常量是( )。enum week{sun,mon=4,tue,wed,thu,fri,sat} w; A: tue B: sat C: fri D: thu
设有以下定义,值为5的枚举常量是( )。enum week{sun,mon=4,tue,wed,thu,fri,sat} w; A: tue B: sat C: fri D: thu
设有以下定义,值为5的枚举常量是( )。enum week{sun,mon=4,tue,wed,thu,fri,sat} w; A: tue B: sat C: fri D: thu
设有以下定义,值为5的枚举常量是( )。enum week{sun,mon=4,tue,wed,thu,fri,sat} w; A: tue B: sat C: fri D: thu