X-Apparently-From: Message-ID: <011101bf4c24$826a4740$06f838ca@home-computer> From: "Prashant TR" To: Subject: Re: Somebody please explain : Length of bit fields Date: Wed, 22 Dec 1999 08:00:21 +0530 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Reply-To: djgpp AT delorie DOT com Mike Collins wrote: >I came across an interesting thing: In the program below, I would have >expected a structure length of 6 bytes, but in fact, when I compile it and >single step it, I read the values for a, b, c, d printed below. Of >particular interest is the value of a ( the sizeof the entire structure) = >8. Read section 18.5 and 22.10 of the FAQ. Prashant ------------------------------------------ One pound of learning requires ten pounds of common sense to apply it. __________________________________________________ Do You Yahoo!? Thousands of Stores. Millions of Products. All in one place. Yahoo! Shopping: http://shopping.yahoo.com