当前位置: 答题翼 > 问答 > 计算机类考试 > 正文
目录: 标题| 题干| 答案| 搜索| 相关
问题

以下对枚举类型名的定义中正确的是()。A.enum a={one two three};B.enum a{one=9 two=-1.three=20


以下对枚举类型名的定义中正确的是()。

A.enum a={one,two,three};

B.enum a{one=9,two=-1.three=200};

C.enum a={"one","two","four"};

D.enum a{"nine","two","three"};

请帮忙给出正确答案和分析,谢谢!

参考答案
您可能感兴趣的试题
  • 以下对结构体类型变量的定义中,不正确的是 A.typedefstructaa {intn; floatm; }A

  • 对于枚举数据类型 以下4种描述中 正确的是______。A.枚举类型成员的值可以为负数B.枚举类型的几个

  • 以下对枚举类型名的定义中正确的是______。A.enum a={one two three};B.enum a{on=9 two=-1 three

  • 以下对枚举类型名的定义中正确的是()A.enum a={one two three};B.enum a{one=9 two=-1 three=200

  • 以下对枚举类型名的定义中正确的是______。A.enum a={one two three};B.enum a {one=9 two=1 thre

  • 定义枚举如下:publicenumDirection{EAST SOUTH WEST NORTH}下列正确使用该枚举类型的语句是哪项?()