Member Selection Operators
Review Questions
1. |
What is the difference between a statement and an expression? |
2. |
What is the difference between an overloaded operator and a function? |
3. |
What ways can you introduce a new type into C++? |
4. |
Which cast operator is best suited for numeric values? |
5. |
What happens when you assign an int variable to a double value? |
6. |
Which cast operator is best suited for downcasting through polymorphic hierarchies? |
7. |
Why are ANSI casts preferred over C-style casts? |
8. |
What is a situation in which you might find the reinterpret_cast used in a reasonable way? |