delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/03/09/04:15:27

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Martin Stromberg <eplmst AT lws256 DOT emw DOT erisoft DOT se>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: structures vs memory
Date: 9 Mar 2004 08:50:51 GMT
Organization: Ericsson Erisoft AB, Sweden
Lines: 15
Message-ID: <c2k0hb$g12$1@antares.lu.erisoft.se>
References: <baec0bf0 DOT 0403090004 DOT 5ad6b0c5 AT posting DOT google DOT com>
NNTP-Posting-Host: lws256.emw.erisoft.se
User-Agent: tin/1.4.7-20030322 ("Suggestions") (UNIX) (SunOS/5.6 (sun4u))
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Andrey <huli_ebtyt AT list DOT ru> wrote:
: Why DJGPP reserves 2 bytes of memory for the element of char type in a
: structure, when sizeof(structureName.elementName) returns 1?

No it doesn't. It might reserve 4 or 8 (or possibly 16 even).

You shouldn't care.

Try FAQ 22.11. And the rest of the FAQ before you ask any more
questions.


Right,

						MartinS

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019