Multiple ChoiceBeginner 45s
Reference reseating
Which statement about C++ references is TRUE?
Options
- 1A reference can be reseated at any time simply by assigning a new address to it, just like a pointer variable.
- 2A reference must be initialized and cannot be reseated to refer to another object after initialization.
- 3A reference may be default-initialized and bound later, provided it is assigned before its first use.
- 4A reference may legally refer to no object at all, which is a null reference checked with if (&r == nullptr).
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.