How do you initialize a class member,
class x {
const int i;
};
Answer Posted / santosh patil
class members can be initialized directly like
class x{const int i=10;}
but its structures members tat cant be initialized lik above
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is malloc in c++?
Name four predefined macros.
Is c++ harder than java?
What are the two main components of c++?
Can we use this pointer in a class specific, operator-overloading function for new operator?
Explain the static storage classes in c++.
Write about an iterator class?
What is a template in c++?
Define copy constructor.
Define stacks. Provide an example where they are useful.
Explain friend class?
What is a flag in c++?
I want explanation for this assignment: how to connect mysql database using c/c++,please explain this detailly?
What is a float in c++?
What do the header files usually contains?