On Thu, 17 Apr 2008 00:09:40 -0400, CBFalconer wrote:
Anand Hariharan wrote:
>Kaz Kylheku wrote:
>>saverio.p...@gmail.com wrote:
What does this represent?
unsigned int n : 6;
Your pitiful inability to consult a reference manual.
Given a "reference manual", where would you look it up?
Under "Declarations".
Looking up K&R2 index entry for "declaration", I see page references 9, 40
and 210-218.
Pages 9 and 40 do not discuss bit fields. Pages 210-218 gets into grammar,
and does not get into bit fields until mid-way of page 212. Not the
easiest of pages in this book to find the answer I sought out to find.
There are a dozen odd more entries for declaration, but nothing that says
"declaration, with colon" or something similar.
The entry for "declaration, structure" takes one to either page 128 or
212. Bit fields are covered in the same chapter as page 128, but it does
not come until page 150.
The index itself begins with entries for symbols starting from '0' to ...
'\0' (the quotes are mine), but no entry for ':'.
This isn't a critique of K&R2's index, but just to point out that it is
not obvious where to find an answer to OP's question. Considering that one
could always mouth off a rebuttal based on "reference manual" and
"consult", I suppose I am wasting my time ....
--
ROT-13 email address to reply