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

Write a function that swaps the values of two integers, using int* as the argument type?

1031


Define 'std'.

1176


What is a class template in c++?

1054


why and when we can declar member fuction as a private in the class?

2077


What is meant by the term name mangling in c++?

961


How can we read/write Structures from/to data files?

1135


Does c++ have foreach?

1063


What is an operator function? Describe the function of an operator function?

1152


Is empty stack c++?

997


What is fixed in c++?

1040


Explain virtual destructor?

1201


Am studying basic c++ programming, have been given the following assignment. Design a linear program to calculate the maximum stress a material can withstand given a force and a diameter of a circle. To find the required area pi should be defined. Have most of the program sorted out but am at a loss as to how to show the calculations required. Can anyone help?

2192


What are the five basic elements of a c++ program?

1111


Explain the different access specifiers for the class member in c++.

1003


the first character in the variable name must be an a) special symbol b) number c) alphabet

1097