C++ Casts Quiz: static_cast, dynamic_cast, const_cast, reinterpret_cast Explained
Test your understanding of C++ cast operators, when to use each one, and how safety and intent differ in modern C++ code.
Quizzes
Choose a quiz and test your understanding of a focused concept.
Test your understanding of C++ cast operators, when to use each one, and how safety and intent differ in modern C++ code.
Test your understanding of C++ loop splitting, cache behavior, memory bandwidth, and why separate loops can outperform one fused loop.
Test your understanding of practical C++ operator overloading rules, idioms, member vs non-member design, and common pitfalls.
Test your understanding of the C++ Rule of Three, copy constructor, copy assignment, deep vs shallow copy, and disabling copying.
Test your understanding of how to choose trustworthy C++ books, avoid outdated resources, and build a level-appropriate learning path.
Test your understanding of iterating over whitespace-separated words in C++ using std::istringstream and operator>>.
Test your understanding of C++ pointers vs references, including syntax, behavior, memory semantics, common mistakes, and use cases.
Test your understanding of C++ explicit constructors and conversion operators, implicit conversions, safer APIs, and common mistakes.
Test your understanding of branch prediction, sorted vs unsorted data, and why the same C++ loop can run much faster.
Test your understanding of why `using namespace std;` is discouraged in C++, including headers, naming conflicts, readability, and safer alternatives.