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 containers in c++?

992


Explain what data encapsulation is in c++?

1102


By using c++ with an example describe linked list?

1031


If dog is a friend of boy, is boy a friend of dog?

984


Is vector a class in c++?

1049


When to use “const” reference arguments in a function?

1075


How can you quickly find the number of elements stored in a dynamic array? Why is it difficult to store linked list in an array?

1038


Explain the difference between c & c++?

1095


How to defines the function in c++?

1139


How many different levels of pointers are there?

1213


What is called array?

1088


What is a responder chain?

1054


What is abstract keyword in c++?

1074


Eplain extern keyword?

1030


Should the member functions which are made public in the base class be hidden?

1034