delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
Date: | Tue, 9 Mar 2004 09:47:05 -0500 |
Message-Id: | <200403091447.i29El5i5002005@envy.delorie.com> |
From: | DJ Delorie <dj AT delorie DOT com> |
To: | djgpp AT delorie DOT com |
In-reply-to: | <baec0bf0.0403090005.66458248@posting.google.com> |
(huli_ebtyt AT list DOT ru) | |
Subject: | Re: structures vs memory |
References: | <baec0bf0 DOT 0403090005 DOT 66458248 AT posting DOT google DOT com> |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | djgpp AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
> Why DJGPP reserves 2 bytes of memory for the element of char type in a > structure, when sizeof(structureName.elementName) returns 1? It doesn't. What it might do is pad the entry so that the NEXT field is properly aligned for its type.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |