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 flag means?
What are literals in C++?
What is the sequence of destruction of local objects?
How can you link a c program with a c function?
What are the rules for naming an identifier?
Does c++ have arraylist?
How many types of modularization are there in c++?
What does flush do c++?
Define the operators that can be used with a pointer.
Explain the concept of memory leak?
Do you know what is overriding?
What is a c++ vector?
Explain the difference between struct and class in terms of access modifier.
What is the last index number in an array of 100 characters a) 100 b) 99 c) 101
Explain all the C++ concepts using examples.