I have just started reading C++ and found c++ having rich functions for string manipulation which C does not have. I am reading these function and came across c_str()<
c_str()<
It's used to make std::string interoperable with C code that requires a null terminated char*.
std::string
char*