In C++, an enum can be used to create _______. 

  • classes 
  • named constants 
  • functions 
  • variables
In C++, an enumeration (enum) is a user-defined data type that consists of integral constants. By default, the first enumerator has the value 0, and the value of each successive enumerator is increased by one. They are essentially a way to create named integral constants.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *