Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

How the programmer of a class should decide whether to declare member function or a friend function?

0 Answers  


Explain what are single and multiple inheritances in c++?

0 Answers  


Difference between struct and class in terms of access modifier.

0 Answers  


What are different types of loops in c++?

0 Answers  


Explain the different access specifiers for the class member in c++.

0 Answers  


Can char be a number c++?

0 Answers  


Write about the access privileges in c++ and also mention about its default access level?

0 Answers  


What is object in c++ wikipedia?

0 Answers  


write a program in c++ to implement stack using functions in header file stack.h

3 Answers   Google, Subex,


What is c++ mutable?

0 Answers  


Do we have to use initialization list in spite of the assignment in constructors?

0 Answers  


Does c++ have foreach?

0 Answers  


Categories