This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
allignment in structures
- From: Purnendu/Gmail <purnendu at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 26 Aug 2004 20:53:17 +0530
- Subject: allignment in structures
- Reply-to: Purnendu/Gmail <purnendu at gmail dot com>
#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