Beginner
C++
Q39 / 100
What is a string in C++?
Correct! Well done.
Incorrect.
The correct answer is B) std::string is the standard class for strings with safe operations; char arrays are the C-style alternative
B
Correct Answer
std::string is the standard class for strings with safe operations; char arrays are the C-style alternative
Explanation
std::string from <string> provides safe string handling. C-style char arrays (char[]) are lower-level and require manual null-termination.
Progress
39/100