Interview Q&A · C++ · 12 questions in this topic

Rapid-Fire Revision — C++ Interview Q&A

All C++ topics

One-line answers spanning the whole bank — the final pass the night before the interview. Part of Scenarios & Rapid Fire · 213 questions in the C++ bank.

This rapid-fire round distils the C++ bank into short answers for the final pass. The cards target distinctions that separate a working answer from a precise one: value versus reference parameters, object lifetime and RAII, virtual dispatch, and undefined behaviour in the standard library. Each answer is a starting point — be ready to name the rule that makes it true, and open the full topic when you need the example rather than the summary. For each card, also name the standard rule or lifetime boundary that the answer depends on.

Compiled or interpreted?

Answer

Compiled — to native machine code via object files and linking (no VM by default).

Statically or dynamically typed?

Answer

Statically typed — types fixed and checked at compile time.

Pointer vs reference?

Answer

Pointer: nullable, reseatable address. Reference: must-bind alias, never null, never reseated.

Recommended resourcesAffiliate links · may earn us a commission

Classic DSA interview booksThe reference books interviewers themselves learned from — great next to the visualizers.See the books Structured coding coursesVideo courses that pair well with visual practice — pick one language and go deep.Browse courses Cloud hosting for side projectsShip the portfolio project that gets you hired — free credits for new accounts.Claim credits