Keith Thompson <
ks...@mib.org> writes:
> Tim Rentsch <
t...@alumni.caltech.edu> writes:
>> Keith Thompson <
ks...@mib.org> writes:
>
> [...]
>
>>> I don't think I'd recommend K&R1 except for historical interest.
>>
>> My recommendation is for both, not for just K&R by itself. Also
>> I'm not saying someone should read the original first, only that
>> it might be better as an introductory text. And it might -
>> most likely different readers will reach different conclusions
>> on that question.
>
> Would you care to expand on your reasons for recommending both?
Not especially, but I will anyway. :)
One reason is that less material is easier to absorb, and the
original edition covers less material (kind of obviously, because
the language is smaller). Similar to the difference between a
tutorial and a reference manual - someone new to the language can
benefit from both.
Another reason is that C has a long history, which even today is
occasionally relevant looking at existing code. I believe there
are benefits to being exposed to the style of earlier C code, and
the original K&R naturally does a better job of that than K&R2.
Needless to say, I realize that other people may hold different
views on the subject.
>>> I think that later printings of K&R2 were updated to reflect the
>>> published C89 standard.
>>
>> The point is not to assume that the two are the same. We don't
>> know which printing will end up on the reading table.
>
> It's easy enough to check which edition you have.
Yes, if you have the book in your hands, and if you know which
printings have the updates in them. I'm not sure either applies
to the person who asked the orginal question.