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

Answer Posted / guest

'B' is the answer

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we need templates?

947


Differentiate between a copy constructor and an overloaded assignment operator.

1021


What are the storage qualifiers?

1105


Can constructor be static in c++?

1051


What is overloading unary operator?

1028


Explain how functions are classified in C++ ?

1180


What is difference between rand () and srand ()?

1039


Does c++ have finally?

963


Explain the difference between using macro and inline functions?

1057


Why is c++ so fast?

979


Function can be overloaded based on the parameter which is a value or a reference. Explain if the statement is true.

1065


What is a responder chain?

1008


Explain static and dynamic memory allocation with an example each.

1044


How does com provide language transparency?

967


How to declaring variables in c++?

1108