string somestring ;
Which of the following choices will convert a standard C++
string object "somestring" to a C string?
a) Copy.somestring () ;
b) somestring.c_str ()
c) &somestring [1]
d) std::cstring (somestring)
e) (char *) somestring
Answer Posted / guest
'B' is the answer
Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
What do you mean by inheritance in c++? Explain its types.
What are the differences between malloc() and calloc()?
What is a block in c++?
Is c# written in c++?
what are the iterator and generic algorithms.
What are the various arithmetic operators in c++?
To what does “event-driven” refer?
Is there structure in c++?
Why c++ is the best language?
What is purpose of abstract class?
What is the difference between the parameter to a template and the parameter to a function?
what you know about c++?
Why do we learn c++?
What are the types of container classes?
What is a hashmap c++?