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



string somestring ; Which of the following choices will convert a standard C++ string object &qu..

Answer / guest

'B' is the answer

Is This Answer Correct ?    9 Yes 0 No

Post New Answer

More C++ General Interview Questions

What are the extraction and insertion operators in c++?

0 Answers  


What is the basic of c++?

0 Answers  


What are the advantages of c++?

0 Answers  


Which algorithm do you like the most? Why?

2 Answers   Google,


What is the header file for setw?

0 Answers  






Differentiate between an inspector and a mutator ?

0 Answers  


Which is the best c++ software?

0 Answers  


Explain unexpected() function?

0 Answers  


What are manipulators used for?

0 Answers  


Differentiate between late binding and early binding.

0 Answers  


C is to C++ as 1 is to a) What the heck b) 2 c) 10

0 Answers  


What is anonymous object in c++?

0 Answers  


Categories