15 questions for “Modern C++”

Found in 1 field. Select a question to see its full answer.

Information Technology

15 questions in 1 technology

#QuestionTechnologyTopicLevel
1Why are function-like macros discouraged in modern C++? C++ › Preprocessor & MacrosC++Preprocessor & MacrosIntermediate
2What is an enumeration (enum) in C++? C++ › Enums & Enum ClassesC++Enums & Enum ClassesBeginner
3What is consteval (C++20)? C++ › Constexpr & Compile-TimeC++Constexpr & Compile-TimeIntermediate
4What is constinit (C++20)? C++ › Constexpr & Compile-TimeC++Constexpr & Compile-TimeIntermediate
5What is std::bit_cast (C++20)? C++ › Casting & ConversionsC++Casting & ConversionsAdvanced
6What is std::format (C++20) and how does it improve string formatting? C++ › Strings & string_viewC++Strings & string_viewAdvanced
7How do you handle Unicode and encodings in C++ strings? C++ › Strings & string_viewC++Strings & string_viewAdvanced
8What is std::generator (C++23) and how does it simplify coroutine use? C++ › CoroutinesC++CoroutinesAdvanced
9What are C++20 modules and how do they improve on headers? C++ › Compilation & LinkingC++Compilation & LinkingAdvanced
10Can a lambda be recursive? C++ › Lambda ExpressionsC++Lambda ExpressionsBeginner