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 is the function of I/O library in C++ ?
What are the advantages of early binding?
What is command line arguments in C++? What are its uses? Where we have to use this?
Why do we need c++?
Is c++ map a hash table?
Are there any special rules about inlining?
What are the benefits of operator overloading?
What is a buffer c++?
Explain overriding.
What is abstraction c++?
To what does “event-driven” refer?
Is it possible for the objects to read and write themselves?
What is meant by a delegate?
What does 7/9*9 equal ? a) 1 b) 0.08642 c) 0
Is it possible to write a c++ template to check for a function's existence?