Which of the following is a correct way to initialize a string in C++?
string str = "Hello";
string str("Hello");
string str{"Hello"};
All of the above
This question is part of this quiz :