C/C++ Interview Cheatsheet#

This page is a curated, question-indexed map into the rest of the cheatsheet. Each entry below is a question you are likely to see in a C or C++ interview, followed by a link that jumps directly to the section of the notes that answers it. It is intentionally a navigation layer — the actual explanations, code, and caveats live in the linked sections.

Use it two ways:

  • Drilling a topic: pick a group (e.g. Templates & Generics) and walk every question in it.

  • Quick review before an interview: read the questions, and for any you cannot confidently answer in one or two sentences, click through.

Memory & Resource Management#

Move Semantics & Value Categories#

Templates & Generics#

Casting & Type Conversions#

Compile-Time Programming#

STL Containers & Iterators#

Strings#

Modern C++ Features#

C Language Essentials#

Concurrency & OS#

Debugging & Tools#

See Also#

If a question above is not covered, the top-level indices are the best next stop: