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 about vectors in c ++?
Who invented turbo c++?
What is the latest version on c++?
Can a built-in function be recursive?
What is the main function c++?
Explain the use of virtual destructor?
describe private access specifiers?
What are shallow and deep copy?
Why is c++ awesome?
What is c++ course?
How to access a variable of the structure?
What is a .h file c++?
What ANSI C++ function clears the screen a) clrscr() b) clear() c) Its not defined by the ANSI C++ standard
What is the benefit of c++?
When should we use container classes instead of arrays?