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;



class HasStatic { static int I; }; Referring to the sample code above, what is the approp..

Answer / guest

Ans e)

Is This Answer Correct ?    4 Yes 2 No

Post New Answer

More C++ General Interview Questions

What is the difference between "overloading" and "overridding"?

3 Answers  


What is the use of volatile variable?

0 Answers  


How much do coding jobs pay?

0 Answers  


What are c++ variables?

0 Answers  


What does new return if there is insufficient memory to make your new object?

0 Answers  


What is a dangling pointer in c++?

0 Answers  


What is a static element?

0 Answers  


What is vectorial capacity?

0 Answers  


What is a rooted hierarchy?

0 Answers  


What are the comments in c++?

0 Answers  


What is rvalue?

0 Answers  


How many static variables are created if you put one static member into a template class definition?

0 Answers  


Categories