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 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
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.
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?
"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."
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.
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?
"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."
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/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Charles L |
last post by:
Does anyone know where I can find errata for Stan Lippman's 'C++ Primer 2nd
Edition'?
Charles Leng
|
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...
|
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?...
|
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:
/****************************************/...
|
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...
|
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.
...
|
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...
|
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...
|
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...
|
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,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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$) {
}
...
|
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...
|
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...
|
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,...
|
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...
|
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,...
|
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...
| |