K&R Errata?

Z

Zach

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
 
I

Ioannis Vranos

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?
 
C

c gordon liddy

Ioannis Vranos said:
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. ?
 
U

user923005

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.
 
S

Spiro Trikaliotis

Gia sou Ioanni,

Ioannis said:
c gordon liddy wrote:

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.
 
Joined
Jan 26, 2008
Messages
10
Reaction score
0
By the way, the K&R is a great reference and learning book. I use it for teaching all of my C courses, intro and advanced. I also use it as a regular reference book.

Errata is significant for experienced programmers, but since you describe that you are learning the language, I'd suggest concentrating first on the structure instead of the errata.

--Mark

http://www.marksatterfield.com/
http://mark.a.satterfield.googlepages.com/
 
Last edited:

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top