By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,569 Members | 1,321 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,569 IT Pros & Developers. It's quick & easy.

K&R Errata?

P: n/a
I am looking for a comprehensive list of errors in Kernighan &
Ritchie's "The C Programming Lanuage: 2nd Edition (ANSI C)"

Also what is the best way to work through the list with the Errata? I
don't want to constantly refer back to the Errata since that may slow
down my learning but I also don't want to learn something that isn't
100% accurate.

Zach
Mar 12 '08 #1
Share this Question
Share on Google+
10 Replies


P: n/a
Zach wrote:
I am looking for a comprehensive list of errors in Kernighan &
Ritchie's "The C Programming Lanuage: 2nd Edition (ANSI C)"
Best to go to the source:

<http://cm.bell-labs.com/cm/cs/cbook/index.html>


Brian
Mar 12 '08 #2

P: n/a
Default User wrote:
Zach wrote:
>I am looking for a comprehensive list of errors in Kernighan &
Ritchie's "The C Programming Lanuage: 2nd Edition (ANSI C)"

Best to go to the source:

<http://cm.bell-labs.com/cm/cs/cbook/index.html>

Just got my English copy of K&R2. Does anyone know if the above errata
contain fixes regarding inconsistencies between "Appendix A: Reference
manual" and the actual final ANSI C89/ISO C90 (or better, C95)?

Thanks.
Mar 20 '08 #3

P: n/a
About the errata:

"53(2.12): The note under the table should say & as well as + - * has
higher precedence as a unary operator."
Can someone say what the entire note text under that table should be?
Mar 20 '08 #4

P: n/a
On Mar 20, 2:25*pm, Ioannis Vranos <ivra...@nospam.no.spamfreemail.gr>
wrote:
About the errata:

"53(2.12): The note under the table should say & as well as + - * has
higher precedence as a unary operator."

Can someone say what the entire note text under that table should be?
http://www.difranco.net/cop2220/op-prec.htm
C++ operators included in this one:
http://en.wikipedia.org/wiki/Operators_in_C_and_C%2B%2B
Mar 20 '08 #5

P: n/a
user923005 wrote:
On Mar 20, 2:25 pm, Ioannis Vranos <ivra...@nospam.no.spamfreemail.gr>
wrote:
>About the errata:

"53(2.12): The note under the table should say & as well as + - * has
higher precedence as a unary operator."

Can someone say what the entire note text under that table should be?

http://www.difranco.net/cop2220/op-prec.htm
C++ operators included in this one:
http://en.wikipedia.org/wiki/Operators_in_C_and_C%2B%2B

None of these links answer my question.
Mar 20 '08 #6

P: n/a

"Ioannis Vranos" <iv*****@nospam.no.spamfreemail.grwrote in message
news:fr*********@ulysses.noc.ntua.gr...
About the errata:

"53(2.12): The note under the table should say & as well as + - * has
higher precedence as a unary operator."
Can someone say what the entire note text under that table should be?
Unaer haben +, -, * und & mehr Vorrang als binaer. ?

--
C. Gordon Liddy

"Virile, vigorous, potent."
Mar 21 '08 #7

P: n/a
On Mar 20, 2:56*pm, Ioannis Vranos <ivra...@nospam.no.spamfreemail.gr>
wrote:
user923005 wrote:
On Mar 20, 2:25 pm, Ioannis Vranos <ivra...@nospam.no.spamfreemail.gr>
wrote:
About the errata:
"53(2.12): The note under the table should say & as well as + - * has
higher precedence as a unary operator."
Can someone say what the entire note text under that table should be?
http://www.difranco.net/cop2220/op-prec.htm
C++ operators included in this one:
http://en.wikipedia.org/wiki/Operators_in_C_and_C%2B%2B

None of these links answer my question.
From that chart:
Operator Description
-------- -----------------
& Address
& Bitwise AND
* Dereference
* Multiplication
+ Unary plus
+ Addition
++ Postfix increment
++ Prefix increment
- Unary minus
- Subtraction
-- Postfix decrement
-- Prefix decrement

As you know, these operators are the same symbols but have different
meanings and precendence when used in the second sense.
From the position on the chart in the link that I posted, you can tell
which ones have higher precedence.
Mar 21 '08 #8

P: n/a
c gordon liddy wrote:
"Ioannis Vranos" <iv*****@nospam.no.spamfreemail.grwrote in message
news:fr*********@ulysses.noc.ntua.gr...
>About the errata:

"53(2.12): The note under the table should say & as well as + - * has
higher precedence as a unary operator."
Can someone say what the entire note text under that table should be?

Unaer haben +, -, * und & mehr Vorrang als binaer. ?

In english?
Mar 21 '08 #9

P: n/a

"Ioannis Vranos" <iv*****@nospam.no.spamfreemail.grwrote in message
news:fr**********@ulysses.noc.ntua.gr...
>c gordon liddy wrote:
>"Ioannis Vranos" <iv*****@nospam.no.spamfreemail.grwrote in message
news:fr*********@ulysses.noc.ntua.gr...
>>About the errata:

"53(2.12): The note under the table should say & as well as + - * has
higher precedence as a unary operator."
Can someone say what the entire note text under that table should be?

Unaer haben +, -, * und & mehr Vorrang als binaer. ?


In english?
Can't help you there.

--
C. Gordon Liddy

"Virile, vigorous, potent."
Mar 21 '08 #10

P: n/a
Gia sou Ioanni,

Ioannis Vranos wrote:
c gordon liddy wrote:
>Unaer haben +, -, * und & mehr Vorrang als binaer. ?

In english?
I'll just translate the sentence of "c gordon liddy". I do not know if
it is correct for the table, or if it makes sense at all. ;)

"If used unary, the '+', '-', '*' and '&' have higher precendence than
if used binary."

HTH,
Spiro.

--
Spiro R. Trikaliotis http://opencbm.sf.net/
http://www.trikaliotis.net/ http://www.viceteam.org/
Mar 24 '08 #11

This discussion thread is closed

Replies have been disabled for this discussion.