Home »
MCQs »
C++ MCQs
What is the size of an empty class in C++?
174. What is the size of an empty class in C++?
- 1 Byte
- 0 Byte
- 2 Byte
- 4 Byte
Answer: A) 1 Byte
Explanation:
The size of an empty class is 1 byte, every object occupies at least one byte to differentiate memory address space for objects.