X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Martin Stromberg 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: References: 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 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