A Admin • 833.24K Points Coach Q. Which of the following is the correct way to initialize a string in C++? (A) string str = 'Hello'; (B) string str = "Hello"; (C) string str = H e l l o; (D) string str = [Hello]; Correct Answer - Option(B) Views: 33 Filed under category C++ Hashtags: Share Manage Tags
Discusssion
Login to discuss.