allignment in structures

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



#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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux