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

Why should you learn c++?

0 Answers  


Explain the concept of dynamic allocation of memory?

0 Answers  


what is data abstraction in C++?

0 Answers  


Which header file allows file i/o with streams a) fileio.h b) iostream.h c) fstream.h

0 Answers  


How is static data member similar to a global variable?

0 Answers  


What is "mutable" keyword?

2 Answers   Infosys, Teradata,


How do you clear a map in c++?

0 Answers  


What are the various compound assignment operators in c++?

0 Answers  


There is a array of 99 cells and we have to enter 1-100 elements in it , no two elements would repeat , so the is one no. missing because 99 cells and 1-100 nos. so we had to implement a function to find that missing no.

2 Answers   Nagarro,


Will c++ be replaced?

0 Answers  


what do you mean by memory management operators

4 Answers   HCL,


Explain how functions are classified in C++ ?

0 Answers  


Categories