469,587 Members | 2,134 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,587 developers. It's quick & easy.

Solutions to "C Programing Language"

Hey guys-

I've decided to learn me some C, as any hacker must :)

So I've got a C compiler handy, and I've downloaded the book by
Kernergan and Richie that was recommended to me...

One bad thing tho is it doesn't have solutions printed at the back, so
what I'd like is to have a solutions manual to look at, instead of
spending a lot of time thinking about each of the examples.

Does anyone know a site with the solutions manual?

TIA!

CC Jon

Sep 29 '07 #1
12 2749
co********@mailinator.com wrote:
Hey guys-

I've decided to learn me some C, as any hacker must :)

So I've got a C compiler handy, and I've downloaded the book by
Kernergan and Richie that was recommended to me...
The book is NOT available for download. You got it in an illegal
fashion.

One bad thing tho is it doesn't have solutions printed at the back, so
what I'd like is to have a solutions manual to look at, instead of
spending a lot of time thinking about each of the examples.
Ahhh
It didn't occur to you that the objective of the
exercises is precisely to make you think?

But obviously you have lost this capacity long long ago.
Does anyone know a site with the solutions manual?
GO AWAY!
Sep 29 '07 #2

<co********@mailinator.comwrote in message
news:11**********************@w3g2000hsg.googlegro ups.com...
Hey guys-

I've decided to learn me some C, as any hacker must :)

So I've got a C compiler handy, and I've downloaded the book by
Kernergan and Richie that was recommended to me...
Then you've just participated (perhaps unknowingly)
in theft of intellectual property. K&R (2nd edition)
is an extremely good choice of books for learning C,
but please purchase a legitimate copy so that the folks
who did the work are justly compensated. Also, when
learning a new subject, imo more than one information
source is desirable. See www.accu.org for peer reviews
and recommendations.
One bad thing tho is it doesn't have solutions printed at the back, so
what I'd like is to have a solutions manual to look at, instead of
spending a lot of time thinking about each of the examples.

Does anyone know a site with the solutions manual?
There isn't a solutions manual that I'm aware of. I suggest that
an excellent way to learn would be to try to do the exercises,
and if you get stuck, post your code here with your accompanying
questions. And even if your solution does seem to be correct,
post it anyway, and ask for constructive criticism. IMO you'll
learn far more than comparing your answers to 'canned' ones.
Virtually all the exercises can be done in several ways. Creating
your own will help you develop your critical thinking skills.

-Mike
Sep 29 '07 #3
Mike Wahler wrote:

[snip good advice]

That's a better answer than mine. Maybe I got carried away.
At least you do not get excited about him.

--
jacob navia
jacob at jacob point remcomp point fr
logiciels/informatique
http://www.cs.virginia.edu/~lcc-win32
Sep 29 '07 #4
On 29 Sep 2007 at 19:40, jacob navia wrote:
co********@mailinator.com wrote:
>Hey guys-

I've decided to learn me some C, as any hacker must :)

So I've got a C compiler handy, and I've downloaded the book by
Kernergan and Richie that was recommended to me...

The book is NOT available for download. You got it in an illegal
fashion.
I believe you should be a little more cautious before throwing around
accusations like that. There *are* ebooks that are legally available to
download from the publishers... now, I'm not sure whether or not K&R is
available in that format, but it's quite possible.
>
>One bad thing tho is it doesn't have solutions printed at the back, so
what I'd like is to have a solutions manual to look at, instead of
spending a lot of time thinking about each of the examples.

Ahhh
It didn't occur to you that the objective of the
exercises is precisely to make you think?

But obviously you have lost this capacity long long ago.
>Does anyone know a site with the solutions manual?

GO AWAY!
Of course you are right that it's much better to try the exercizes
before looking for solutions. The OP seems to me like someone who's
young and a bit immature, full of himself to be sure, but enthusiastic,
and gentle correction might yield more fruit than aggression.

As it happens, there is an (incomplete) collection of solutions to K&R2,
maintained by one of the regular posters here:
http://users.powernet.co.uk/eton/kandr2/krx123.html
Well worth studying the solutions there - *after* trying the exercizes
for yourself, of course.

Sep 29 '07 #5
On Sat, 29 Sep 2007 12:37:43 -0700, in comp.lang.c ,
co********@mailinator.com wrote:
>So I've got a C compiler handy, and I've downloaded the book by
Kernergan and Richie that was recommended to me...
Others have pointed out that the book isn't legally available for d/l,
so I'll say no more about it.
>One bad thing tho is it doesn't have solutions printed at the back, so
what I'd like is to have a solutions manual to look at, instead of
spending a lot of time thinking about each of the examples.
Er, its kinda the point - you're /supposed/ to think about the
examples...
>Does anyone know a site with the solutions manual?
Search the fine web. Seriously - its the very first hit.

--
Mark McIntyre

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
Sep 29 '07 #6
Mike Wahler said:

<snip>
There isn't a [K&R2] solutions manual that I'm aware of.
Tondo and Gimpel (dead tree); clc-wiki (er, undead tree?)

But yes, the whole point is for the OP to give it a go himself, rather than
reach for pre-canned answers.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Sep 29 '07 #7
Fred said:

<snip>
There *are* ebooks that are legally available to
download from the publishers... now, I'm not sure whether or not K&R is
available in that format, but it's quite possible.
I *am* sure - it is not legally available in electronic form. Every now and
again I come across an online version, and report the URL to Prentice
Hall. They have people to deal with that sort of thing.

<snip>
>
As it happens, there is an (incomplete) collection of solutions to K&R2,
maintained by one of the regular posters here:
http://users.powernet.co.uk/eton/kandr2/krx123.html
Please don't go there, as it is no longer maintained by anyone. Go here
instead: http://clc-wiki.net/wiki/K%26R2_solutions

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Sep 29 '07 #8
On Sep 29, 11:19 pm, Mark McIntyre <markmcint...@spamcop.netwrote:
On Sat, 29 Sep 2007 12:37:43 -0700, in comp.lang.c ,

coolcat...@mailinator.com wrote:
So I've got a C compiler handy, and I've downloaded the book by
Kernergan and Richie that was recommended to me...
<snip>
Search the fine web. Seriously - its the very first hit.
Maybe you get different hits when you can't spell either Kernighan or
Ritchie :)
>
--
Mark McIntyre

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
Sep 29 '07 #9
In article <13*************@corp.supernews.com>,
Mike Wahler <mk******@mkwahler.netwrote:
>Then you've just participated (perhaps unknowingly)
in theft of intellectual property.
You mean "violation of copyright".

Theft involves the intent to deprive the owner of the thing taken.
Violating copyright does not deprive the author of his "intellectual
property"; at most it deprives him of putative income from it.

-- Richard
--
"Consideration shall be given to the need for as many as 32 characters
in some alphabets" - X3.4, 1963.
Sep 29 '07 #10
jacob navia wrote:
Mike Wahler wrote:

[snip good advice]

That's a better answer than mine. Maybe I got carried away.
At least you do not get excited about him.
To control those urges, I suggest you use your Thunderbird
offline. Then you can synchronize and go offline. Your answers
will be held until you go back online again, giving you time to
reconsider, modify, or delete.

--
Chuck F (cbfalconer at maineline dot net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net>

--
Posted via a free Usenet account from http://www.teranews.com

Sep 30 '07 #11
"Mike Wahler" <mk******@mkwahler.netschrieb im Newsbeitrag
news:13*************@corp.supernews.com...
>
<co********@mailinator.comwrote in message
news:11**********************@w3g2000hsg.googlegro ups.com...
....
>One bad thing tho is it doesn't have solutions printed at the back, so
what I'd like is to have a solutions manual to look at, instead of
spending a lot of time thinking about each of the examples.

Does anyone know a site with the solutions manual?

There isn't a solutions manual that I'm aware of.
I got 2 hits on amazon.com
"The C Answer Book, Solutions to the Exercises in The C Programming Language
2nd Edition (Paperback)"

Bye, Jojo
Sep 30 '07 #12
On Sat, 29 Sep 2007 15:38:45 -0700, in comp.lang.c ,
Fr************@googlemail.com wrote:
>On Sep 29, 11:19 pm, Mark McIntyre <markmcint...@spamcop.netwrote:
>On Sat, 29 Sep 2007 12:37:43 -0700, in comp.lang.c ,
>Search the fine web. Seriously - its the very first hit.

Maybe you get different hits when you can't spell either Kernighan or
Ritchie :)
Huh? I rarely have trouble spelling "K&R"....

:-)
--
Mark McIntyre

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
Sep 30 '07 #13

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by John Salerno | last post: by
669 posts views Thread by Xah Lee | last post: by
1 post views Thread by Recrutamento_Stefanini | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.