In C++20, using enum with _______ allows specifying the underlying type and scope.
- type specificity
- class
- explicit type
- annotations
In C++20, when using enum with "class", it allows the developer to specify both the underlying type and the scope. This gives better control and clarity over enumeration definitions.
Loading...
Related Quiz
- The concept of encapsulation involves bundling the data () and the methods () that operate on the data into a single unit.
- The goto statement can lead to _______ if used indiscriminately.
- A _______ block is used to enclose the code that might throw an exception.
- Which of the following data types can store a non-integer number?
- Which of the following data types has the smallest size in C++?