what is the difference between initializing the string in the following ways?
string s = "Hello World"; and
string s[] = {"Hello World"}; From what i understand the former is a class? And the latter an array? Moreover, are there any other ways apart from these two?
std::string s[]- is an array of strings. The two lines are not equivalent.