← All tutorials
Skill Zuno · skillzunos.com · Fullstack
C ++ tutorial
Learn C ++ on Skill Zuno. This C ++ tutorial covers New, Easy, Medium, Hard, and Diff levels so you can study practical C ++ problems on skillzunos.com.
Open C ++ on Skill ZunoAlso see the C ++ interview questions.
C++ is a compiled, statically typed language that offers low-level memory control together with classes, templates and a rich standard library. It powers game engines, browsers, trading systems and embedded software. C++ interviews cover RAII, smart pointers, move semantics, virtual functions, templates and the STL.
C ++ topics covered
- Stack versus heap, pointers and references — Where objects live, how pointers and references differ, and lifetime rules.
- RAII and deterministic destruction — Tying resources to object lifetimes so destructors clean up, even when exceptions are thrown.
- Smart pointers: unique_ptr, shared_ptr and weak_ptr — Choosing the right ownership model and never calling delete by hand.
- Copy and move semantics and the rule of five — Avoiding needless copies with rvalue references, and which special members a class needs.
- Virtual functions, vtables and polymorphism — How virtual dispatch works under the hood, and its cost.
- Templates and the STL containers and algorithms — Generic code with templates, and using vector, map, unordered_map and algorithms effectively.
- const correctness and constexpr — Marking what does not change, and moving computation to compile time.
- Undefined behaviour and common memory bugs — Out-of-bounds access, use-after-free and data races, and tools such as sanitizers that catch them.
What you can learn
- C ++ tutorial for beginners and experienced developers
- Level-based practice: New, Easy, Medium, Hard, and Diff
- Fullstack topics alongside C ++ on skillzunos.com