Select from following answers:- The Enum keyword is used to declare an enumeration.
- By default,the first enumerator has the value 0.
- An enum can also be nested within a class or struct.
- Usually it is best to define an enum directly within a namespace so that all classes in the namespace can access it with equal convenience.
- All Above
Above all options are correct about Enum. As to declare an Enum, Enum keyword is used to identify that this is an enum and also it's index is 0 i.e. we can access enum value with with its enumarator with value 0.
Show Correct Answer
Asked In: Many Interviews |
Alert Moderator