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 containers in c++?
Explain what data encapsulation is in c++?
By using c++ with an example describe linked list?
If dog is a friend of boy, is boy a friend of dog?
Is vector a class in c++?
When to use “const” reference arguments in a function?
How can you quickly find the number of elements stored in a dynamic array? Why is it difficult to store linked list in an array?
Explain the difference between c & c++?
How to defines the function in c++?
How many different levels of pointers are there?
What is called array?
What is a responder chain?
What is abstract keyword in c++?
Eplain extern keyword?
Should the member functions which are made public in the base class be hidden?