www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/12/21/22:18:59

X-Apparently-From: <prashant?tr AT yahoo DOT com>
Message-ID: <011101bf4c24$826a4740$06f838ca@home-computer>
From: "Prashant TR" <prashant_tr AT yahoo DOT com>
To: <djgpp AT delorie DOT com>
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 <Mike AT NO_SPAM DOT e-col DOT freeserve DOT co DOT uk> 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

- Raw text -


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