说明语句: enum money{Fen,Jiao,Yuan=100,Tenyuan};每个枚举量所对应的实际值为: 。
A. 0,1,100,101
B. 1,2,100,101
C. 1,2,3,4
D. ”Fen”,”Jiao”,”Yuan”或100,”Tenyuan”
执行以下语句后的结果为 。enum weekday{sun,mon=3,tue,wed,thu};enum weekday workday;workday=wed;printf("%d\n",workday);
A. 5
B. 3
C. 4
D. 编译时出错
设有定义"enum term { my,your=4,his, her=his+10};",则输出是() printf("%d,%d,%d,%d\n",my,your, his,her);
A. 0,l,2,3
B. 0,4,0,10
C. 0,4,5,15
D. 1,4,5,15
设有如下枚举类型定义enum language {Basic=3,Assembly=6,Ada=100,COBOL,Fortran};枚举量Fortran的值为______。
A. 4
B. 7
C. 102
D. 103