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 meant by reference variable in C++?

1 Answers  


How do you define/declare constants in c++?

0 Answers  


What are the differences between a struct in C and in C++?

8 Answers   Amazon, Wipro,


What is the advantage of c++ over c?

0 Answers  


What is the importance of mutable keyword?

0 Answers  


What is the meaning of string in c++?

0 Answers  


what is a class? Explain with an example.

0 Answers  


Explain method of creating object in C++ ?

0 Answers   Wipro,


Differentiate between declaration and definition in C++?

1 Answers  


What is the maximum combined length of command line arguments including the space between adjacent arguments?

0 Answers  


What is dev c++ used for?

0 Answers  


How a modifier is similar to mutator?

0 Answers  


Categories