Code:
string somestring ;
Question: Which of the following choices will convert a standard
C++ string object "somestring" to a C string?
- Copy.somestring () ;
- somestring.c_str ()
- std::cstring (somestring)
- (char *) somestring
- &somestring [1]
Leo Liberti
2008-01-12