Re: code question
CBFalconer <cbfalconer@yah oo.comwrites:
I think it is very unlikely that K&R made this mistake either with or
without the spaces. I don't have K&R2 but since there is no published
correction we can safely assume that Bill Cunningham is mistaken.
In my K&R (1 not 2) the example is:
~ finds use in expressions such as
x & ~077
--
Ben.
CBFalconer <cbfalconer@yah oo.comwrites:
Bill Cunningham wrote:
>
Are you sure it is not "x ~= 34;"? Have you checked the published
errata sheet? I greatly doubt that K&R have suppressed the blanks
as you have.
>>
>Someone pointed out to me Richard that an answer to a question I
>raised about bitwise operators was on page 49 or kandr2. I read,
>and re-read, and re-read page 49 about 3 times and strained to
>keep my focus on reading and the text. The question was why is
>the unary operator ~ shown like this:
>>
>x~34;
>and not x=x~34;
>>
>Is the question indeed answered on that page?
>Someone pointed out to me Richard that an answer to a question I
>raised about bitwise operators was on page 49 or kandr2. I read,
>and re-read, and re-read page 49 about 3 times and strained to
>keep my focus on reading and the text. The question was why is
>the unary operator ~ shown like this:
>>
>x~34;
>and not x=x~34;
>>
>Is the question indeed answered on that page?
Are you sure it is not "x ~= 34;"? Have you checked the published
errata sheet? I greatly doubt that K&R have suppressed the blanks
as you have.
without the spaces. I don't have K&R2 but since there is no published
correction we can safely assume that Bill Cunningham is mistaken.
In my K&R (1 not 2) the example is:
~ finds use in expressions such as
x & ~077
--
Ben.
Comment