All fields

“References & Pointers” in Information Technology

14 questions across 1 technology.

Information Technology

14 questions in 1 technology

#QuestionTechnologyTopicLevel
1Why does auto strip references and top-level const, and when is that a problem? C++ › Type Deduction & autoC++Type Deduction & autoAdvanced
2How does const propagate with member objects and pointers (const propagation)? C++ › Const CorrectnessC++Const CorrectnessAdvanced
3What is the difference between the stack and the heap? C++ › Memory ManagementC++Memory ManagementBeginner
4What is the difference between auto, auto&, and const auto&? C++ › Type Deduction & autoC++Type Deduction & autoBeginner
5What does const mean in C++? C++ › Const CorrectnessC++Const CorrectnessBeginner
6Why should you pass objects by const reference? C++ › Const CorrectnessC++Const CorrectnessBeginner
7What is a constant reference and why is it useful? C++ › Const CorrectnessC++Const CorrectnessBeginner
8What is std::string_view and why was it added? C++ › Strings & string_viewC++Strings & string_viewBeginner
9What happens if you dereference a null pointer? C++ › Undefined BehaviorC++Undefined BehaviorBeginner
10What is a dangling pointer and how does it arise? C++ › Memory ManagementC++Memory ManagementIntermediate
11What causes a stack overflow? C++ › Memory ManagementC++Memory ManagementIntermediate
12What is the difference between capturing by value and by reference? C++ › Lambda ExpressionsC++Lambda ExpressionsIntermediate
13What is the difference between const pointer and pointer to const? C++ › Const CorrectnessC++Const CorrectnessIntermediate
14What is the difference between passing const std::string& and std::string_view? C++ › Strings & string_viewC++Strings & string_viewAdvanced