Thread: bit fields before non-bit fields . . .

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered Luser cwr's Avatar
    Join Date
    Jul 2005
    Location
    Sydney, Australia
    Posts
    869
    Quote Originally Posted by dwks
    Is it true that all bit fields must be before any non-bit field members of a structure?
    No, it's not.

    Quote Originally Posted by dwks
    Anybody? It was in Sams Teach Yourself C in 21 Days, so I don't know if it's true or not.
    I've heard from various people that reading that book does more harm than good.
    Last edited by cwr; 10-12-2005 at 07:47 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. bit fields and union
    By azerej in forum C Programming
    Replies: 4
    Last Post: 05-26-2008, 06:33 PM
  2. union in struct with bit fields
    By sagarnewase in forum C Programming
    Replies: 4
    Last Post: 05-12-2008, 07:30 AM
  3. bit patterns of negtive numbers?
    By chunlee in forum C Programming
    Replies: 4
    Last Post: 11-08-2004, 08:20 AM
  4. Bit fields
    By GaPe in forum C Programming
    Replies: 8
    Last Post: 01-22-2002, 02:01 PM
  5. Array of boolean
    By DMaxJ in forum C++ Programming
    Replies: 11
    Last Post: 10-25-2001, 11:45 PM