473,403 Members | 2,284 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,403 software developers and data experts.

k&r book

i've been told that k&r doesn't actually teach ansi C properly
is this true?
Nov 13 '05 #1
14 1833
conrad wrote:
i've been told that k&r doesn't actually teach ansi C properly
is this true?


Worked well for me. I learned from the first edition; and use the
second edition from time to time as a quick reference. The second
edition seems fairly current.

Have you experienced difficulty learning from the book? You're
invited to ask for help/clarifications here.
--
Morris Dovey
West Des Moines, Iowa USA
C links at http://www.iedu.com/c
Read my lips: The apple doesn't fall far from the tree.

Nov 13 '05 #2
conrad wrote:

i've been told that k&r doesn't actually teach ansi C properly
is this true?


It, and any other book, does not teach. However it is quite
possible for those skilled in the art of reading to learn from it
(and other books).

Should I be misconstruing your question, there are slight failings
in C90 conformance. Most of them are covered quite adequately in
the errata.

Should I still be misconstruing your question, yes it does not
adhere to Ansi C as of 2003, which is actually C99. Ansi adopts
the ISO C standard bodily. Since the book was written about 10
years before the C99 standard was published, I don't consider this
a fatal flaw.

--
Chuck F (cb********@yahoo.com) (cb********@worldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!

Nov 13 '05 #3
On 25 Nov 2003 20:37:39 -0800, co****@lawyer.com (conrad) wrote::
i've been told that k&r doesn't actually teach ansi C properly
is this true?


There's a newer edition of "Programming in C" by the Kernigan and
Ritchie pair with fake stamp on the cover that says "ANSI C Edition".
I saw it on the shelf at the local Chapters last year.

The original 1970s edition doesn't teach ANSI-C, but I would hope that
this edition would -- considering the title.
----------------------------------------
Thanks,
MCheu
Nov 13 '05 #4
mcheu wrote:
On 25 Nov 2003 20:37:39 -0800, co****@lawyer.com (conrad) wrote::

i've been told that k&r doesn't actually teach ansi C properly
is this true?

There's a newer edition of "Programming in C" by the Kernigan and
Ritchie pair with fake stamp on the cover that says "ANSI C Edition".
I saw it on the shelf at the local Chapters last year.

The original 1970s edition doesn't teach ANSI-C, but I would hope that
this edition would -- considering the title.


That's the second edition. It is intended to cover ANSI C (C89), and
does so quite well. There are errors, as there are in all books. The
concerned reader should consult the errata list.

-Kevin
--
My email address is valid, but changes periodically.
To contact me please use the address from a recent posting.

Nov 13 '05 #5
I find 2nd edition (ANSI C) quite good actually.

conrad wrote:
i've been told that k&r doesn't actually teach ansi C properly
is this true?


Nov 13 '05 #6
Pushkar Pradhan wrote:
I find 2nd edition (ANSI C) quite good actually.


Please stop top-posting.

-Kevin
--
My email address is valid, but changes periodically.
To contact me please use the address from a recent posting.

Nov 13 '05 #7
Kevin Goodsell wrote:
Pushkar Pradhan wrote:
I find 2nd edition (ANSI C) quite good actually.


Please stop top-posting.


Right. Nevertheless, he has a good point (albeit rather understated).

K&R2 is, in fact, quite superb.

--
Richard Heathfield : bi****@eton.powernet.co.uk
"Usenet is a strange place." - Dennis M Ritchie, 29 July 1999.
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
K&R answers, C books, etc: http://users.powernet.co.uk/eton
Nov 13 '05 #8
Richard Heathfield wrote:
K&R2 is, in fact, quite superb.


Would you recommend it as an introduction to the general subject of
programming, that is, to someone completely new to the subject?


Nov 13 '05 #9
On Wed, 03 Dec 2003 15:15:02 GMT
Elliot Marks <em****@email.net> wrote:
Richard Heathfield wrote:
K&R2 is, in fact, quite superb.


Would you recommend it as an introduction to the general subject of
programming, that is, to someone completely new to the subject?


If they are starting with C then I would recommend that they get K&R2
*and* a good programming tutorial.

To quote from the Preface to the First Edition, "The book is not an
introductory programming manual; it assumes some familiarity with basic
programming concepts lie..."

That said, some people have learnt to program from K&R so it is not
impossible and it is IMHO an excellent reference book as well as being a
good C tutorial.
--
Mark Gordon
Paid to be a Geek & a Senior Software Developer
Although my email address says spamtrap, it is real and I read it.
Nov 13 '05 #10
In <3F**************@email.net> Elliot Marks <em****@email.net> writes:
Richard Heathfield wrote:
K&R2 is, in fact, quite superb.


Would you recommend it as an introduction to the general subject of
programming, that is, to someone completely new to the subject?


Yes, it teaches a lot more than just C.

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Nov 13 '05 #11
Dan Pop wrote:

In <3F**************@email.net> Elliot Marks <em****@email.net> writes:
Richard Heathfield wrote:
K&R2 is, in fact, quite superb.


Would you recommend it as an introduction to the general subject of
programming, that is, to someone completely new to the subject?


Yes, it teaches a lot more than just C.


Dan apparently holds a high opinion of the programming
aptitude of the populace at large ...

IMHO, a complete beginner needs to learn some fundamentals
that K&R omit. Chief among these is the understanding that
computers are both literal-minded and stupid; they'll do what
you tell 'em even if you tell 'em something ridiculous. Since
programmers spend a lot of effort trying to get their software
to appear smart, beginners are often unaware of the intrinsic
thoughtlessness of the "thinking machine."

That, I think, is the single most important thing to know
about computers. Beyond that, the beginner must acquire some
knowledge of binary arithmetic, comprehend why 1/3 and 1./3
are different, appreciate that 1./3*3 might not equal 1, have
some idea of why one would want to write a subroutine, and so
on. K&R start from the premise that the reader already knows
such things, and address themselves to how C deals with them.

You've got to know what "intransitive verb" means before
you can make full use of a English-German dictionary.

--
Er*********@sun.com
Nov 13 '05 #12
In <3F***************@sun.com> Eric Sosman <Er*********@sun.com> writes:
Dan Pop wrote:

In <3F**************@email.net> Elliot Marks <em****@email.net> writes:
>Richard Heathfield wrote:
>
>> K&R2 is, in fact, quite superb.
>
>Would you recommend it as an introduction to the general subject of
>programming, that is, to someone completely new to the subject?


Yes, it teaches a lot more than just C.


Dan apparently holds a high opinion of the programming
aptitude of the populace at large ...


Of the populace that is really motivated to learn computer programming.
That's quite different from the populace at large...

More than one person claimed, in this very newsgroup, that he learned C
from one K&R book or another with no prior exposure to computer
programming. So, it's possible.

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Nov 13 '05 #13
Elliot Marks wrote:
Richard Heathfield wrote:
K&R2 is, in fact, quite superb.


Would you recommend it as an introduction to the general subject of
programming, that is, to someone completely new to the subject?


Yes if the student is being taught programming by a good teacher who is also
a good programmer.

Also yes even if the student is self-teaching, provided he or she is a
bright bunny.

But there are other books, the two obvious choices being Deitel and Deitel,
and of course K N King. The clever student with access to an excellent
bookshop will go to that bookshop, take all three books off the shelf, sit
down with them for half an hour over a cup of coffee, and browse through
them trying to decide which of them seems to match his or her mindset most
closely.

And then buy all three of them anyway. :-)

--
Richard Heathfield : bi****@eton.powernet.co.uk
"Usenet is a strange place." - Dennis M Ritchie, 29 July 1999.
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
K&R answers, C books, etc: http://users.powernet.co.uk/eton
Nov 13 '05 #14
Richard Heathfield wrote:
But there are other books, the two obvious choices being Deitel and Deitel,
and of course K N King. The clever student with access to an excellent


"Pointers on C" [1] and "C Programming: A Modern Approach" [2] are my favorites.
Both are _very_ good books, without big pitfalls.
[1] http://www.cs.rit.edu/~kar/pointers.on.c/
[2] http://knking.com/books/c/

Nov 13 '05 #15

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

Similar topics

6
by: | last post by:
I ask something relative later but the answer make me cry ;-) If we duplicate the browser window (both in IE / Mozilla), both of 2 browser windows use the same session!!! This produces many...
42
by: Andy | last post by:
and so far I'm loving it, I like the the authors don't beat around the bush and just come straight out and say what the book is sopposed to be. They assume the you have computer experience. I'm...
72
by: Paminu | last post by:
In math this expression: (a < b) && (b < c) would be described as: a < b < c But why is it that in C these two expressions evaluate to something different for the same values of a, b and...
14
by: __frank__ | last post by:
What do you think about the following book: "C How to Program", 4th edition, ISBN: 0131426443 I'm a novice. Thanks in advance.
4
by: Adrian | last post by:
I see that I can use the IDE of Visual C#.NET to develop web pages. I realize that this is off topic here, however I don't know of another place to ask my question, which is: Where can I find /...
19
by: DesCF | last post by:
What are the differences between vb, vb.net, & vba ? -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
22
by: gillisct | last post by:
I'd like to say I have a basic control of the C language. Is there any reccomended reading upon completion of K&R? Are there any projects someone new to C could study/watch over/ and eventually...
26
by: rajiv.battula | last post by:
Hey everyone, I am a Java programmer, somewhere between novice to advanced. I wanted to know if it is still recommended to read "The C Programming Language" 2nd Edition? This edition was...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.