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 flag means?

954


What are literals in C++?

1024


What is the sequence of destruction of local objects?

974


How can you link a c program with a c function?

1065


What are the rules for naming an identifier?

1062


Does c++ have arraylist?

1013


How many types of modularization are there in c++?

1077


What does flush do c++?

1055


Define the operators that can be used with a pointer.

1041


Explain the concept of memory leak?

1101


Do you know what is overriding?

1191


What is a c++ vector?

1038


Explain the difference between struct and class in terms of access modifier.

1177


What is the last index number in an array of 100 characters a) 100 b) 99 c) 101

1146


Explain all the C++ concepts using examples.

1198