Why an empty Structure will occupy 2Bytes in C++

Why an empty Structure will occupy 2Bytes in C++

Structure name assign a 1 byte from compiler side, spo Size of empty structure in C++ is 1 byte, Classes have no member that's why objects have 0 bytes, However the objects must be legally creatable because the class is not abstract so there must be  a way to address the objects.

By:UMANG
Date:2001-01-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related C Subjective Links

C Subjective interview questions and answers for experienced and fresher