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
Explain some examples of operator overloading?
Define a constructor?
Does dev c++ support c++ 11?
What is the difference between interpreters and compilers?
What are signs of manipulation?
Explain the static member function.
Is it possible to have a recursive inline function in c++?
Is dev c++ free?
Show the declaration for a pointer to function returning long and taking an integer parameter.
Does std endl flush?
When should overload new operator on a global basis or a class basis?
Why do we use double in c++?
Which coding certification is best?
Is java the same as c++?
How is modularity introduced in C++?