Answers for "c_str in c++"

C++
2

c_str in c++

What does c_str () do in C++?
  
The basic_string::c_str() is a builtin function in C++ which returns a pointer
to an array that contains a null-terminated sequence of characters representing 
the current value of the basic_string object.
Posted by: Guest on August-06-2021

Browse Popular Code Answers by Language