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 cin clear () in c++?
What are the various oops concepts in c++?
What are the 4 types of library?
What is time h in c++?
Can notepad ++ run c++?
Why was c++ created?
What are punctuators in c++?
Is c++ low level?
What is a vector c++?
Give example of a pure virtual function in c++?
What is the standard template library (stl)?
What are c++ storage classes?
What is the use of 'using' declaration in c++?
What does std mean in c++?
What is abstraction in c++?