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 are the restrictions apply to constructors and destructors?

0 Answers  


Can constructor be static in c++?

0 Answers  


What are the stages in the development cycle?

0 Answers  


why we cant create array of refrences

4 Answers  


How do you sort a sort function in c++ to sort in descending order?

0 Answers  


Who was the creator of c++?

0 Answers  


Difference between shift left and shift right?

1 Answers   Symphony,


What is runtime errors c++?

0 Answers  


What is switch case in c++ syntax?

0 Answers  


Write bites in Turbo c++ Header ("Include") Files.

0 Answers  


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

0 Answers  


i have given a project to create examination seating plan system in c++. so can anyone send me the answer of this question quickly??????

1 Answers  


Categories