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

class HasStatic {
static int I;
};
Referring to the sample code above, what is the appropriate
method of defining the member variable "I", and assigning it
the value 10, outside of the class declaration?
a) HasStatic I = 10;
b) int static I = 10;
c) static I(10);
d) static I = 10;
e) int HasStatic::I = 10;

Answer Posted / guest

Ans e)

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are special characters c++?

994


What are the advantages of prototyping?

1021


How compile and run c++ program in turbo c++?

1136


How the virtual functions maintain the call up?

1111


How are virtual functions implemented in c++?

1034


What is the use of vtable?

1114


What is prototype in c++ with example?

1086


Do the names of parameters have to agree in the prototype, definition, and call to the function?

1000


Evaulate: 22%5 a) 2 b) 4 c) 0

1047


Do you need a main function in c++?

1097


What are built-in functions? What is the syntax for the definition?

1045


How do I download c++?

974


Explain what are the sizes and ranges of the basic c++ data types?

1131


What does count ++ do in c++?

1173


What is split a string in c++?

1151