I'm writing a code in which I have to pass a const char* into the class overloaded constructor and to assign this const char* to the char* variable which is a private member of the class. I'm doing this type of code but doesn't working giving an error that a const char* cannot be assigned to char* type.
Here is the code: