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

Explain some examples of operator overloading?

1039


Define a constructor?

1000


Does dev c++ support c++ 11?

967


What is the difference between interpreters and compilers?

1110


What are signs of manipulation?

1016


Explain the static member function.

1120


Is it possible to have a recursive inline function in c++?

979


Is dev c++ free?

970


Show the declaration for a pointer to function returning long and taking an integer parameter.

1068


Does std endl flush?

979


When should overload new operator on a global basis or a class basis?

1023


Why do we use double in c++?

1009


Which coding certification is best?

973


Is java the same as c++?

941


How is modularity introduced in C++?

1153