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

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: huli_ebtyt AT list DOT ru (Andrey)
Newsgroups: comp.os.msdos.djgpp
Subject: structures vs memory
Date: 9 Mar 2004 01:01:12 -0800
Organization: http://groups.google.com
Lines: 2
Message-ID: <baec0bf0.0403090005.66458248@posting.google.com>
NNTP-Posting-Host: 212.220.74.133
X-Trace: posting.google.com 1078822872 15235 127.0.0.1 (9 Mar 2004 09:01:12 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: Tue, 9 Mar 2004 09:01:12 +0000 (UTC)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp 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?

- Raw text -


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