I\'ve learned from previous posts that const char* and char[] are stack-allocated. std::string, on the other hand, allocates memory on the
const char*
char[]
std::string