This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

allignment in structures


#pragma pack(2)

struct abc {

char a;
char b;
char c;
};

A sizeof( struct abc) gives 3, shouldnot i expect it to be 4? any pointers???
i am using " gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)"


-purnendu


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]