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 are the various situations where a copy constructor is invoked?
What are the differences between new and malloc?
Why do we need function?
Describe friend function & its advantages.
What are special characters c++?
What can c++ be used for?
What are the rules about using an underscore in a c++ identifier?
What are the types of container classes?
What is class and structure in c++?
What is the latest c++ version?
What does the following code do: int c=0; cout< a) Undefined *Updated* b) 01 c) 00
Can I learn c++ without learning c?
What is endl?
Why do we use the using declaration?
What is the output of the following program? Why?