This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
interesting struct???????????
- To: drepper at cygnus dot com
- Subject: interesting struct???????????
- From: "Ashok Das" <ashok_s_das at hotmail dot com>
- Date: Wed, 18 Oct 2000 15:10:37 GMT
- Cc: gcc-bugs at gcc dot gnu dot org
hi,
Sorry wheather it is the right place or not..
i found something interesting..
gcc-2.95(RH 6.2) shows this...
struct x{
int a;
char b;
};
sizeof(struct x) gives 8 why??
but struct x{
int a;
char b;
char c;
char d;
char e;
}
gives a size of 8 too???????????/
how????
Ashok
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at
http://profiles.msn.com.