All fields

“Strings & string_view” in Information Technology

17 questions across 1 technology.

Information Technology

17 questions in 1 technology

#QuestionTechnologyTopicLevel
1What is std::string_view and why was it added? C++ › Strings & string_viewC++Strings & string_viewBeginner
2What are the dangers of std::string_view? C++ › Strings & string_viewC++Strings & string_viewIntermediate
3Why should you avoid returning std::string_view to local data? C++ › Strings & string_viewC++Strings & string_viewIntermediate
4What is the difference between passing const std::string& and std::string_view? C++ › Strings & string_viewC++Strings & string_viewAdvanced
5How do you handle Unicode and encodings in C++ strings? C++ › Strings & string_viewC++Strings & string_viewAdvanced
6What is std::string and how does it differ from a C-string? C++ › Strings & string_viewC++Strings & string_viewBeginner
7How do you convert between std::string and numbers? C++ › Strings & string_viewC++Strings & string_viewBeginner
8What common operations does std::string provide? C++ › Strings & string_viewC++Strings & string_viewBeginner
9How does std::string manage memory and what is SSO? C++ › Strings & string_viewC++Strings & string_viewIntermediate
10How do you efficiently build up a large string? C++ › Strings & string_viewC++Strings & string_viewIntermediate
11What is std::format (C++20) and how does it improve string formatting? C++ › Strings & string_viewC++Strings & string_viewAdvanced
12What is std::stringstream and when is it useful? C++ › I/O StreamsC++I/O StreamsIntermediate
13What is the difference between >> and std::getline for input? C++ › I/O StreamsC++I/O StreamsIntermediate
14How can you convert an enum to a string (reflection limitations)? C++ › Enums & Enum ClassesC++Enums & Enum ClassesAdvanced
15What are the # (stringize) and ## (token paste) operators? C++ › Preprocessor & MacrosC++Preprocessor & MacrosAdvanced
16What are stream manipulators and how are they used? C++ › I/O StreamsC++I/O StreamsAdvanced
17How do you improve iostream performance for large I/O? C++ › I/O StreamsC++I/O StreamsAdvanced