Thread: The ':' operator

  1. #1
    Registered User
    Join Date
    Dec 2007
    Posts
    932

    The ':' operator

    What exactly the ':' operator does?

    Code:
    struct SByteBits
    {
        BYTE b7 : 1;
        BYTE b6 : 1;
        BYTE b5 : 1;
        BYTE b4 : 1;
        BYTE b3 : 1;
        BYTE b2 : 1;
        BYTE b1 : 1;
        BYTE b0 : 1;
    };
    Using Windows 10 with Code Blocks and MingW.

  2. #2

  3. #3
    Registered User
    Join Date
    Dec 2007
    Posts
    932
    Great, thank you!
    Using Windows 10 with Code Blocks and MingW.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Ternary Operator to choose which operator to use
    By cncool in forum C Programming
    Replies: 7
    Last Post: 06-27-2011, 01:35 PM
  2. [ ] operator requires + operator?
    By m37h0d in forum C++ Programming
    Replies: 10
    Last Post: 02-04-2009, 10:21 AM
  3. Replies: 3
    Last Post: 12-09-2008, 11:19 AM
  4. Replies: 2
    Last Post: 07-07-2008, 03:46 AM
  5. Replies: 1
    Last Post: 07-07-2008, 03:38 AM