Declartation in C

Discussion in 'C Programming' started by ldries46, Jan 20, 2011.

  1. ldries46

    ldries46 Guest

    I am not an experienced programmer
    I am trying to understand a C program
    so I wonder what does
    guint printer_set : 1;
    mean and where can I find an explanation.

    I think this is a declaration but then I donĀ“t understand the : 1
    ldries46, Jan 20, 2011
    #1
    1. Advertising

  2. On 2011-01-20, ldries46 <> wrote:
    > I am not an experienced programmer
    > I am trying to understand a C program
    > so I wonder what does
    > guint printer_set : 1;
    > mean and where can I find an explanation.
    >
    > I think this is a declaration but then I don?t understand the : 1
    >


    You can read about it here:
    http://publications.gbdirect.co.uk/c_book/chapter6/bitfields.html
    Pavel Borzenkov, Jan 20, 2011
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.

Share This Page