473,386 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

K&R Errata?

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
10 2750
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
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
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
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
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

"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
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
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

"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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Charles L | last post by:
Does anyone know where I can find errata for Stan Lippman's 'C++ Primer 2nd Edition'? Charles Leng
5
by: Steven T. Hatton | last post by:
If you happen to have Accelerated C++ by Koenig and Moo, and haven't gotten around to reading it, I suggest you count the pages between page 18 and page 51. I came up with zero. This is very...
7
by: Fraser Ross | last post by:
http://erdani.org/errata/ I'm using IE6 which might not be compatible with this page. I've tried the lowest security setting. All I get is the error nosh. Is the page working for anyone else?...
34
by: Mo Geffer | last post by:
Greetings: I have a question about the output of the sample program in section 1.5.3 Line Counting of K&R, Second Edition. Here's the program: /****************************************/...
33
by: hermit_crab67 | last post by:
Can someone explain to a C newbie why this doesn't work as I expect it to work? (expectations clearly outlined in the printf statement in main routine) OS: Linux 2.4.26 GCC: 2.95.4 void...
5
by: Numeromancer | last post by:
From the C++-FAQ Lite: http://www.parashift.com/c++-faq-lite/containers.html#faq-34.3 ---------------------------- 34.3] Is the storage for a std::vector<Tguaranteed to be contiguous? Yes. ...
0
by: cincerite | last post by:
Hello , guys , I'm reading C++ Primer 3rd edition recently.I tried to download the errata of it from Stan Lippman's Home Page:http:// staff.develop.com/slip/ ,but it says:We're Sorry, we could not...
0
by: Ioannis Vranos | last post by:
Eric Sosman wrote: Well, if we all provided solutions for the ambiguous errata of K&R2 and posted them here and sending them to K&R errata site, and/or perhaps added to clc FAQ, I think would...
7
by: Ioannis Vranos | last post by:
In K&R2 errata page <http://www-db-out.research.bell-labs.com/cm/cs/cbook/2ediffs.html> there are some ambiguous errata, for which I propose solutions. Any comments are welcome. Ambiguous...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.