Questions
Read the code, predict what happens, then see why. Hand-written questions on C++, Rust, and the systems underneath them.
- Supply the missing move-assignment operatorMedium
- Two nodes pointing at each otherMedium
- Non-template vs. template overload resolutionHard
- A coroutine taking a const std::string& parameterHard
- Overloads constrained by Integral and SignedIntegralHard
- Copying a std::pmr::vector built on an arenaHard
- Returning a string_view from a function taking const std::string&Hard
- Calling a Numeric-constrained template with std::stringEasy
- Union type punning vs. std::bit_castHard
- std::atomic over a 12-byte structMedium
- Virtual base initialization through two intermediate classesHard
- Make polymorphic deletion safeEasy
- operator[] vs. at() for out-of-bounds accessEasy
- Returning a filter view from a function taking const vector&Hard
- Dependent qualified names inside a function templateHard
- Two counters in one structHard
- Allocating an alignas(64) type with plain newMedium
- auto with vector<bool> and vector<int> subscriptsMedium
- A parameter that can read but not modifyEasy
- Constrain a template to arithmetic typesMedium
1–20 of 117
Page 1 of 6