MCQs > IT & Programming > C++ > Thinking about data members and addressable memory, how are a struct, class and union different?

C++ MCQs

Thinking about data members and addressable memory, how are a struct, class and union different?

Answer

Correct Answer: Struct and class data members are allocated in memory sequentially whereas a union is allocated enough memory for the largest data member only

Explanation:

Note: This Question is unanswered, help us to find answer for this one

C++ Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

C++ Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it