Can we initialize a class/structure member variable as soon as the same is defined?

Trainee Asked on August 15, 2019 in C++ Language.
Add Comment
1 Answer(s)

No, Defining a class/structure is just a type definition and will not allocated memory for the same.

Supporter Answered on August 15, 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.