473,796 Members | 2,680 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2783
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.spamfreemai l.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.spamfreemai l.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.spamfreemai l.grwrote in message
news:fr******** *@ulysses.noc.n tua.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.spamfreemai l.gr>
wrote:
user923005 wrote:
On Mar 20, 2:25 pm, Ioannis Vranos <ivra...@nospam .no.spamfreemai l.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.spamfreemai l.grwrote in message
news:fr******** *@ulysses.noc.n tua.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.spamfreemai l.grwrote in message
news:fr******** **@ulysses.noc. ntua.gr...
>c gordon liddy wrote:
>"Ioannis Vranos" <iv*****@nospam .no.spamfreemai l.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

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
340
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
1685
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 disappointing since I have been intending to read the book for some time now. I finally picked it up with the expectation that I would breeze through it as a review and an alternative expert perspective on C++. Now it looks as though I will have to...
7
1389
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? Fraser.
34
2156
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: /****************************************/ #include <stdio.h> /* count lines in input */
33
2290
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 modify_pointer(char *); int main(int argc, char *argv) {
5
1959
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. This means you the following technique is safe: #include <vector>
0
1996
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 find requested page: http://www.develop.com/hp/slip/errata_prim_3.pdf . It seems the website haven't been maintained for a long time,and the E- mail address on it is no available now. Does anyone know where I can find errata for Stan Lippman's...
0
140
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 be useful to all. Myself am going to post here and send to that K&R errata site all the solutions I implemented for the ambiguous errata I have solved or others contributed solutions, with their names, when finished.
7
185
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 errata (mentioned first) of "The C Programming Language" 2nd Edition errata page (http://www-db-out.research.bell-labs.com/cm/cs/cbook/2ediffs.html), and
0
9685
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9535
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10465
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10242
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10200
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10021
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7558
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6800
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.