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

What is class invariant in c++?

0 Answers  


What is meant by a delegate?

0 Answers  


List the types of polymorphism in c++?

0 Answers  


Can we sort map in c++?

0 Answers  


What is the meaning of string in c++?

0 Answers  


Is c++ a dying language?

0 Answers  


Why can’t you call invariants() as the first line of your constructor?

0 Answers  


What are templates? where we should use it?

2 Answers   Alcatel,


Can turbo c++ run c program?

0 Answers  


What is searching? Explain linear and binary search.

0 Answers  


What is c++ similar to?

0 Answers  


Under what conditions is multiple inheritance not recommended?

1 Answers  


Categories