+ 2
What is c_str and data functions in strings?
How it works and why it's used and how ?
1 Respuesta
+ 3
c_str () simply returns C-style string ( char array terminated with '\0' ) from a C++ string ( std::string class )
Here is an example discussed where it might be useful 👇
https://www.sololearn.com/Discuss/2977617/?ref=app