设有如下枚举类型定义:enum language{Basic =3,Assembly,Ada=100,COBOL,Fortran};枚举量Fortran的值为( )
A. 4
B. 7
C. 102
D. 103
以下对枚举类型的定义中正确的是()
A. enum a={one,two,three};
B. enum a{one,two,three};
C. enum a={“one”,”two”,”three”};
D. enum a{“ one”,”two”,”three”};
设有定义语句:enum term { my, your=4, his, her=his+10 } ;则 printf( "%d,%d,%d,%d" , my, your, his, her ) ; 的输出是()
A. 0,1,2,3
B. 0,4,0,10
C. 0,4,5,15
D. 1,4,5,15