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...

How do you initialize a class member,
class x {
const int i;
};

Answer Posted / guest

x()
{i=10;
}

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how the virtual base class is different from the conventional base classes of the opps.

1107


What is virtual destructor? What is its use?

1009


Can there be at least some solution to determine the number of arguments passed to a variable argument list function?

962


What is an overflow error?

1051


Are strings mutable in c++?

1090


Why do we need function?

1006


Can we define a constructor as virtual in c++?

1066


When does the c++ compiler create temporary variables?

991


Which is the best c++ software?

1048


What do you mean by function overriding & function overloading in c++?

1101


what is data abstraction in C++?

1029


What is the use of c++ programming language in real life?

981


What do you mean by overhead in c++?

1034


Do we have to use initialization list in spite of the assignment in constructors?

941


What is lvalue?

1131