Question OOP-CLS-0018
HardWhat is the size of an object of an empty class in C++ (with typical compilers)?
- A.
8 bytes
- B.
1 byte
- C.
0 bytes
- D.
4 bytes
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Classes and Objects question
What is the size of an object of an empty class in C++ (with typical compilers)?
8 bytes
1 byte
0 bytes
4 bytes
Sign up free to see the answer and a step-by-step explanation.