Just reading up on c_str() and notice that it returns a pointer to a c string.
So, for example, if I want to use this to obtain a string from a stringstream, would I use :
const char* p = ss.c_str(); or
string p = ss.c_Str(); ?
Both work, however because c_str() returns a pointer should I be using the former solution?