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
What is the best c++ book?
Why do we use double in c++?
Write about the scope resolution operator?
Is c better than c++?
What is the return value of the insertion operator?
What do you know about friend class and friend function?
What is the difference between global variables and local variable
What is the best way to declare and define global variables?
What is slicing?
Can c++ be faster than c?
What is the use of bit fields in structure declaration?
What is copy constructor? Can we make copy constructor private in c++?