Multiple ChoiceIntermediate 45s
vtable pointer location
In a typical Itanium ABI implementation, where is the vptr stored and how many does a single-inheritance object have?
Options
- 1One vptr per virtual function, all stored in a side table indexed by the function slot.
- 2The vptr is stored on the heap next to the vtable, with an index to it in the object.
- 3No vptr at all; virtual dispatch is resolved at link time to the concrete function.
- 4One hidden vptr at the start of the object (before the first data member).
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.