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
What are special characters c++?
What are the advantages of prototyping?
How compile and run c++ program in turbo c++?
How the virtual functions maintain the call up?
How are virtual functions implemented in c++?
What is the use of vtable?
What is prototype in c++ with example?
Do the names of parameters have to agree in the prototype, definition, and call to the function?
Evaulate: 22%5 a) 2 b) 4 c) 0
Do you need a main function in c++?
What are built-in functions? What is the syntax for the definition?
How do I download c++?
Explain what are the sizes and ranges of the basic c++ data types?
What does count ++ do in c++?
What is split a string in c++?