What this C++ nested-struct question tests
This is an easy C++ language-knowledge question that quant firms use to check whether you understand how struct definitions, member access, and type resolution work in practice. It's the kind of thing that separates candidates who can read code fluently from those who guess.
To solve it, you need to trace through a code snippet carefully—understanding how nested structures are laid out in memory, what names resolve to at each scope, and what the compiler actually prints. The question rewards careful observation and familiarity with C++ scoping rules rather than algorithmic insight.
- Struct member access and qualification
- Scope resolution and name lookup
- Type definitions within class scope