Find the error(s) in each of the following. When possible, explain how to correct each error.
a) ```
namespace Name {
int x;
int y;
mutable int z;
};
```
b) ```
int integer = const_cast< int >( double );
```
c) ```
namespace PCM( 111, "hello" ); // construct namespace
```
a) A mutable member can belong only to a class.
b) Operator const_cast cannot be used to convert a float to an int. Either static_cast or reinterpret_cast should be used. [Note: The keyword double in pa-
rentheses should be a floating-point value.]
c) A namespace cannot be constructed, because it only defines a scope.
You might also like to view...
____________________ devices are not tethered to network cables.
Fill in the blank(s) with the appropriate word(s).
A color valueis an alphabetic expression that describes the properties of a color.
Answer the following statement true (T) or false (F)
The __________ saves space by layering TabPages on top of each other
Fill in the blank(s) with the appropriate word(s).
A(n) ________ provides legal protection for written and artistic work
Fill in the blank(s) with correct word