I have executed the below code and it works perfectly. Since it is about pointers, I just want to be sure. Though I\'m sure that assigning char* to string makes a copy and even
No, because std::string copies the contents of your char*, so you're free to delete it when you no longer need it.
std::string
char*