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

How can a called function determine the number of arguments that have been passed to it?

0 Answers  


Can constructor be static in c++?

0 Answers  


List the merits and demerits of declaring a nested class in C++?

0 Answers  


What does return 0 do in c++?

0 Answers  


When is a template better solution than a base class??

2 Answers   emc2,


What is the difference between = and == in C?

20 Answers   Christ University, Intel,


Explain abstraction.

0 Answers  


What is auto type c++?

0 Answers  


Why is the function main() special?

0 Answers  


Explain the differences between private, public and protected and give examples.

0 Answers  


What is java and c++?

0 Answers  


Explain the concept of memory leak?

0 Answers  


Categories