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
Declare a class vehicle and make it an abstract data type.
How delete [] is different from delete?
What are the two types of polymorphism?
Which software is best for programming?
Write some differences between an external iterator and an internal iterator?
What do you mean by overhead in c++?
Can a program run without main in c++?
What is function declaration in c++ with example?
What are virtual constructors/destructors?
To which numbering system can the binary number 1101100100111100 be easily converted to?
Explain what are accessor methods?
What does the nocreate and noreplace flag ensure when they are used for opening a file?
What's the "software peter principleā?
What is const pointer and const reference?
What are c++ stream classes?