K&R

M

Marmagya

Hello group,

Does any one know us "The C Programming Language" by K&R is available
online?

Regards
Vineet
 
R

Richard Bos

[ Please do not top-post. ]

Don't bother. This is one book which is well worth having in paper.
Seriously - you are not likely to regret the expense.
I haven't seen it yet, how about an alternative?

http://www.cs.cf.ac.uk/Dave/C/CE.html

Well... it's not very good, is it? For starters it is very incomplete
where C is concerned; more perniciously, it teaches a lot (and I mean a
_lot_) of things that are _not_ actually C, but (probably) POSIX. It
does not, AFAICT, distinguish between what is C and what is only
available on Unix. The style of C used is prehistorical, and the style
of the text is dubious. I could pick more nit, but that should suffice.

Richard
 
D

Dan Pop

In said:
Does any one know us "The C Programming Language" by K&R is available
online?

The copyright owner apparently didn't choose to make it available online.

If you don't mind using pirate sites making it available online, Google
is your friend.

Dan
 
P

pete

Richard said:
[ Please do not top-post. ]

Don't bother. This is one book which is well worth having in paper.
Seriously - you are not likely to regret the expense.
I haven't seen it yet, how about an alternative?

http://www.cs.cf.ac.uk/Dave/C/CE.html

Well... it's not very good, is it? For starters it is very incomplete
where C is concerned; more perniciously,
it teaches a lot (and I mean a
_lot_) of things that are _not_ actually C, but (probably) POSIX. It
does not, AFAICT, distinguish between what is C and what is only
available on Unix. The style of C used is prehistorical, and the style
of the text is dubious. I could pick more nit,
but that should suffice.

I noticed a couple of things.

http://www.cs.cf.ac.uk/Dave/C/node7.html>
Exercise 12336
To read characters to end of data, use a loop such as either

char ch;
while( ch = getchar(), ch >= 0 ) /* ch < 0 indicates end-of-data */

ch should be of type int instead of char.


Also, in http://www.cs.cf.ac.uk/Dave/C/node8.html,
Exercise 12346 is undefined behavior.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,142
Messages
2,570,818
Members
47,362
Latest member
eitamoro

Latest Threads

Top