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 to create a pure virtual function?

1 Answers  


what is C++ objects?

0 Answers  


What type of question are asked in GE code writing test based on c++ data structures and pointers?

0 Answers  


write a c++ program that gives output 4 3 4 2 3 4 1 2 3 4 using looping statement

4 Answers  


Why do we use setw in c++?

0 Answers  


Explain object slicing in c++?

0 Answers  


How do you initialize a string in c++?

0 Answers  


Explain how overloading takes place in c++?

0 Answers  


What is the best book for c++ beginners?

0 Answers  


what you know about c++?

0 Answers   IBS,


What are move semantics?

0 Answers  


Distinguish between a # include and #define.

0 Answers  


Categories