How do you initialize a class member,
class x {
const int i;
};
Answer Posted / pc1989
x variable();
Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is #include iomanip?
What are the advantages of using friend classes?
What causes a runtime error c++?
Explain unexpected() function?
What is the type of 'this' pointer? When does it get created?
What is Destructor in C++?
What is difference between class and structure in c++?
Is map ordered c++?
Explain how to initialize a const data member.
What are the benefits of operator overloading?
Is c the same as c++?
What is the difference between #import and #include in c++?
How one would use switch in a program?
Can circle be called an ellipse?
Differentiate between late binding and early binding. What are the advantages of early binding?