以下对枚举类型名的定义中正确的是:
A: enum a{sum=9,mon=-1,tue};
B: enum a={sum,mon,tue};
C: enum a={"sum","mon","tue"};
D: enum a{"sum","mon","tue" }
A: enum a{sum=9,mon=-1,tue};
B: enum a={sum,mon,tue};
C: enum a={"sum","mon","tue"};
D: enum a{"sum","mon","tue" }
举一反三
- 以下对枚举类型名的定义中正确的是()。 A: enum a {"sum","mon","tue"}; B: enum a={sum,mon,tue}; C: enum a={"sum","mon","tue"}; D: enum a {sum=9,mon=-1,tue};
- 下列对枚举类型的正确定义形式为( ) A: enum a={one,two,three}; B: enum a{one=9,two=-1,three}; C: enum a={"one","two","three"}; D: enum a{"one","two","three"};
- 执行下述语句后的结果是enum weekday {sun, mon=3, tue, wed, thu}; enum weekday day; day = wed; printf("%d ",day); A: 5 B: 3 C: 4 D: 编译时出错
- 以下对枚举类型名的定义中,正确的是__________。 A: enum a ={one,two,three}; B: enum a{a1, a2,a3}; C: enum a ={’1’,’2’,’3’}; D: enum a {"one","two","three" };
- 对枚举类型名的定义enum a {sum=9,mon=-1,tue};是正确的.