Re: C question



As already answered by someone else, you have found an
example of bit fields. The reason no field name exists
on line 3 is because it is just padding.

Do not use bit fields in C. From page 150 of the second
edition of Kernighan and Ritchie, "The C Programming
Language", ISBN 0131103628:

"[..]
Almost everything about fields is implementation-dependent.
Whether a field may overlap a word boundary is
implementation-defined. [..]
Fields are assigned left to right on some machines and
right to left on others. [..]"

Use bitwise operators instead of bit fields if you want to use
C, if you would like to use notation like bit fields' then
consider programming in Ada ( news:comp.lang.ada ) and taking
advantage of its representation clauses (please see the bottom
of WWW.AdaIC.org/standards/95lrm/html/RM-13-5-1.html for an
example).
.



Relevant Pages

  • Re: Idiosyncratic (or idiotic?) notation for lim inf, etc.
    ... and they're easy to find in lots of books. ... seem to be a single set of "standard proofs". ... >>an even worse idea to use in public the notation that I have ... For any particular reason? ...
    (sci.math)
  • Re: Macs no longer overpriced - InfoWorld
    ... There was absolutely no relevance or reason for him to have divulged ... generic Windows box...or scrimping longer for the Mac Pro box. ... Mac by running it in Windows, ... gap between machines and a number of people would like to be somewhere in ...
    (comp.sys.mac.advocacy)
  • Re: Need tutorials, guides... However...
    ... The main reason for me to learn assembly is that i want to make ... performance loss you'll get from an OS like Windows or Linux. ... machines out there have gone off in many different directions. ... expect to find certain hardware at certain addressess. ...
    (alt.lang.asm)
  • Re: When you have to backtrack and downgrade a DC
    ... The only reason you would need to "go back" is if you had an application ... Keep a BDC off line just in case. ... NT machines, of course, do revert back ... So is there any particular way to get one of these machines that's logged ...
    (microsoft.public.windows.server.general)
  • Re: With Tiger is OS 9 pointless?
    ... >> No-one on this thread has given a reason to place OS X and OS 9 in separate ... >> partitions on machines which can't boot OS 9. ... > Or perhaps the users have no apps which need Mac OS 9, ...
    (comp.sys.mac.system)