LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-22-2007, 05:21 PM   #1
easuter
Member
 
Registered: Dec 2005
Location: Portugal
Distribution: Slackware64 13.0, Slackware64 13.1
Posts: 538

Rep: Reputation: 62
C book recommendations


Hi there,

I've been playing around with Gambas BASIC for a few months, but have decided to start with C.
I'm looking for a book that is concisely written, but thats also has lots of exercises and examples for practice.

After browsing on Amazon for a while, I was not able to find anything (from the reviews and descriptions) that is exactly what I want.
There is a book on Objective-C though that seems to be applauded for having lots of exercises and that is explained in a very good manner (read the reviews at the end to see what I mean):
http://www.amazon.co.uk/Programming-...9871693&sr=1-1

This is the type of book that I'm looking for, but for C.

Anything like this come to mind?

BTW, its ok the recommend a door-step sized book, I'm not afraid to read

Thanks in advance!
 
Old 05-22-2007, 05:38 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
I don't know if you've taken a look at the Book Reviews here on LQ, but there are several C books listed there:
http://www.linuxquestions.org/review...hp?product=409
http://www.linuxquestions.org/review...hp?product=395 (By the creators of C and Unix)
http://www.linuxquestions.org/review...hp?product=352
http://www.linuxquestions.org/review...hp?product=137
http://www.linuxquestions.org/review...hp?product=108
 
Old 05-22-2007, 05:39 PM   #3
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Every C programmer should have a copy of The C Programming Language, 2nd Edition by Brian Kernighan and Dennis Ritchie (aka K&R).
 
Old 05-22-2007, 05:42 PM   #4
easuter
Member
 
Registered: Dec 2005
Location: Portugal
Distribution: Slackware64 13.0, Slackware64 13.1
Posts: 538

Original Poster
Rep: Reputation: 62
Quote:
Originally Posted by Martir
I don't know if you've taken a look at the Book Reviews here on LQ, but there are several C books listed there:
Heh, can't believe I missed that....

Thanks for the replies, I'll look at those
 
Old 05-22-2007, 05:53 PM   #5
easuter
Member
 
Registered: Dec 2005
Location: Portugal
Distribution: Slackware64 13.0, Slackware64 13.1
Posts: 538

Original Poster
Rep: Reputation: 62
"The Waite Group's C Primer Plus" looks like a good place to start.
"The C Programming Language" maybe a little later on :P
 
Old 05-22-2007, 06:10 PM   #6
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 115Reputation: 115
I always keep my copy of "Advanced Programming in the Unix Enviroment" and "The C programming language" in my bag.
 
Old 05-22-2007, 07:31 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
I'll have to second, third, fourth ... ;}
"The C programming language"


Awesome work. Very clear, very beautiful.


Cheers,
Tink
 
Old 05-22-2007, 10:31 PM   #8
sidney.harrell
Member
 
Registered: Apr 2006
Location: Stafford, VA
Distribution: Ubuntu 6.06, 7.04, Slackware 11
Posts: 45

Rep: Reputation: 15
That K&R book is by the guys that wrote the language, am I right? But I don't know if it was updated to conform with ANSI C. If you want a video lecture series to go along with pretty much any textbook check out the University of Washington CSE 142 series. It comes with the overhead slides that the professor is referring to, so it feels a lot like being in a classroom. My problem is that I've watched that but I need the homework problems and project assignments and code examples.
 
Old 05-23-2007, 02:25 AM   #9
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
How about Linux Programming by Example, Robbins. It doesn't teach C, but it puts it into the Linux context with examples so hand in hand with the K&R book you would learn quite a bit.
 
Old 05-23-2007, 05:35 AM   #10
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
K & R is a bit terse for a beginner. I'd recommend http://www.amazon.com/Book-C-Program...9916420&sr=1-1
(A Book On C). Good explanations of concepts and lots of examples, explained line by line.
 
Old 05-23-2007, 07:25 AM   #11
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Quote:
Originally Posted by sidney.harrell
That K&R book is by the guys that wrote the language, am I right? But I don't know if it was updated to conform with ANSI C. If you want a video lecture series to go along with pretty much any textbook check out the University of Washington CSE 142 series. It comes with the overhead slides that the professor is referring to, so it feels a lot like being in a classroom. My problem is that I've watched that but I need the homework problems and project assignments and code examples.
Yes, you are right. Dennis Ritchie designed and implemented the C programming language. Brian Kernighan worked with him at Bell Labs (alone with Ken Thompson who created the original UNIX with Ritchie). The 2nd addition was updated for ANSI C. I have read a lot of C books and none are as clear and concise as K&R's in my opinion.
 
Old 05-23-2007, 11:15 AM   #12
easuter
Member
 
Registered: Dec 2005
Location: Portugal
Distribution: Slackware64 13.0, Slackware64 13.1
Posts: 538

Original Poster
Rep: Reputation: 62
Thanks for all the answers!

I'm buying "C Primer Plus", Fifth Edition to start out with.
After I get more familiar with C, K&R's book will definitely find its way into my hands
 
Old 05-23-2007, 11:22 AM   #13
Indiestory
Member
 
Registered: Aug 2006
Location: Aberdeen, Scotland
Distribution: OpenBSD
Posts: 164
Blog Entries: 1

Rep: Reputation: 30
Quote:
Originally Posted by sidney.harrell
If you want a video lecture series to go along with pretty much any textbook check out the University of Washington CSE 142 series. It comes with the overhead slides that the professor is referring to, so it feels a lot like being in a classroom. My problem is that I've watched that but I need the homework problems and project assignments and code examples.
Hey, could you maybe give a link to that for me. I know what you mean I've read a lot of really good stuff about the C language ,but i don't know where to start on getting a practical grasp on the language.
 
Old 05-23-2007, 11:49 AM   #14
sidney.harrell
Member
 
Registered: Apr 2006
Location: Stafford, VA
Distribution: Ubuntu 6.06, 7.04, Slackware 11
Posts: 45

Rep: Reputation: 15
http://www.cs.washington.edu/educati...00au/lectures/
This is the link to the C series, the C++ series is CSE143. Download the zipped files, then extract just the .asf video file and the slides, don't even worry about all the .html files in there.
 
Old 05-31-2007, 04:11 PM   #15
easuter
Member
 
Registered: Dec 2005
Location: Portugal
Distribution: Slackware64 13.0, Slackware64 13.1
Posts: 538

Original Poster
Rep: Reputation: 62
Well, the 960 page door-step called "C Primer Plus, Fifth Edition" arrived today.
Time to start having fun!

Last edited by easuter; 05-31-2007 at 04:22 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Book Recommendations rh_bomani Linux - General 6 12-12-2006 11:41 AM
Python book recommendations? zero79 Linux - Software 1 08-29-2005 09:35 PM
Python Book Recommendations? flamesrock Programming 3 01-13-2005 12:45 PM
Linux Book Recommendations TuxFreak Linux - Newbie 14 11-29-2004 06:29 AM
Book recommendations coopns Linux - Newbie 5 02-17-2004 07:59 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration