[C++11]—Which of the following statements is false?
a. An enumeration’s constants have integer values.
b. An unscoped enum’s underlying type is independent of its constants’ values but is guaranteed to be large enough
to store those values.
c. A scoped enum’s underlying integral type is int, but you can specify a different type by following the type name
with a colon (:) and the integral type. For example, we can specify that the constants in the enum class Status should
have type unsigned int, as in
enum class Status : unsigned int {CONTINUE, WON, LOST};
d. A compilation error occurs if an enum constant’s value is outside the range that can be represented by the enum’s
underlying type.
b. An unscoped enum’s underlying type is independent of its constants’ values but is guaranteed to be large enough
to store those values.
You might also like to view...
A(n) ________ is a defined set of formatting characteristics such as font, font size, font color, cell borders, and cell shading
Fill in the blank(s) with correct word
Suppose that a client uses a struct object for the DataType of a class template, and this will require that operators (used within the class functions) are overloaded. The best way to tell a client which operators will need to have overloaded operator functions, and how the functions should be written, is to:
A. send the client a detailed email about all required overloaded operator functions B. place comments above the class template that specify the details of the required overloaded operator functions C. write details about the required overloaded operator functions into the client’s main program D. You shouldn’t tell the client how to do it – you should write the overloaded operator functions yourself, and place them in another file