LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 12-20-2006, 12:26 AM   #1
badmofo666
Member
 
Registered: Mar 2004
Location: Texas, USA
Distribution: Ubuntu 12 (notebook), Debian Squeeze (home server), OpenSuse 12 (desktop)
Posts: 96

Rep: Reputation: 15
Recommend any good C programming books?


I'm looking for a good book to teach myself C.

I've taken a Visual Basic class at my local community college, but it didn't really get into anything very advanced. It just covered very basic things; the most advanced thing we did was write a program that found inactive email accounts, and then made a script that would delete them. I'm actually thinking about transferring to another school, since even though I'm a Computer Information major, this is the only real programming class offered (the other 2 are SQL and AS/400 RPG).

I'd like to learn C because it seems to be the most used language, especially in linux programs. I've looked at some C code, but it's kind of confusing, especially when multiple files are used. I'm used to Microshaft's Visual Studio, where even though the code is written to multiple files, all the code from all the files is visible.

Anyways, I want a good book that I can teach myself C with, but not something too basic, since I already have some understanding of programming with Visual Basic.

On a side note, is Pascal any good? I was looking at some Pascal code, and it seemed alot easier to read than C, although, I don't know how "powerful" or efficient it is, compared to C.
 
Old 12-20-2006, 12:50 AM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,269

Rep: Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028
Good book & online links:
http://www.amazon.com/exec/obidos/tg...33519?v=glance
http://www.phim.unibe.ch/comp_doc/c_manual/C/cref.html
http://216.239.51.104/search?q=cache...u&ct=clnk&cd=3
 
Old 12-20-2006, 04:04 AM   #3
introuble
Member
 
Registered: Apr 2004
Distribution: Debian -unstable
Posts: 700

Rep: Reputation: 31
http://www.iso-9899.info/wiki/Books
 
Old 12-20-2006, 08:45 AM   #4
95se
Member
 
Registered: Apr 2002
Location: Windsor, ON, CA
Distribution: Ubuntu
Posts: 740

Rep: Reputation: 32
Not sure, I have a few and most aren't all the great. When I first started programming, I read a couple of beginner books on C, but I still could not write a useful program in it. It was more like I had a general understanding after reading them, which was followed by a few "a-ha!" moments. Those moments are when it really came together. Judging from what I see at school (Comp. Sci.), it's the same with other students. Many, after first year, still don't get it. They've read the books, done their homework, but just haven't had their moments. They're stuck at that, "I sorta know C, but can't do shit with it" stage. C made much more sense to me once I started learning assembly, so I'd say download a copy (it's free) of the Art of Assembly and buy a decent C beginners book someone here recommends.

Edit: BTW, I am amazed at the number of students in 3rd and 4th year courses who still can't program in C. A pretty good understanding of it is required in many courses, so I have no idea how they managed to get past those.

Last edited by 95se; 12-20-2006 at 08:46 AM.
 
Old 12-20-2006, 08:58 AM   #5
dmail
Member
 
Registered: Oct 2005
Posts: 970

Rep: Reputation: Disabled
@95se Your not the only one who can't understand how final year computer programming degree students don't know how to programme.

@badmofo666 There is only one true way of learning how to programme and that is from writing code, whilst having a good reference book next to you. The one I would recommend is K&R C programming but this is not really a book to learn from more a reference.
 
Old 01-17-2007, 10:56 PM   #6
KenJennings
LQ Newbie
 
Registered: Mar 2005
Location: FL, USA
Distribution: SuSE
Posts: 28

Rep: Reputation: 15
Quote:
Originally Posted by dmail
@95se Your not the only one who can't understand how final year computer programming degree students don't know how to programme.
I certainly agree there. We get all kinds of types applying for jobs here who don't have a clue how to write good code. I think, perhaps because today people no longer need to learn how computers actually work in order to make them do something useful.

Quote:
Originally Posted by dmail
@badmofo666 There is only one true way of learning how to programme and that is from writing code, whilst having a good reference book next to you. The one I would recommend is K&R C programming but this is not really a book to learn from more a reference.
The K&R book is how I learned. I started at the front, typed in every example, then abused the code in various ways, and did as many of the programming tasks at the end of each section as I had time. People today just don't seem to have the patience for that kind of learning. If it doesn't fit on a power point slide it must be too hard.

I guess that's enough curmudgeon-ry for one post

Last edited by KenJennings; 01-17-2007 at 11:25 PM.
 
Old 01-17-2007, 11:03 PM   #7
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 111Reputation: 111
Quote:
@95se Your not the only one who can't understand how final year computer programming degree students don't know how to programme.
I suspect, like many, that's it's a matter of these Java schools.

On the OP's question, I highly recommend "Advanced Programming for the Unix Enviroment" by Richard Stevens and Stephen Rago.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
good c programming linux books Smokey Programming 5 03-02-2005 05:11 AM
Which computer books would you NOT ! recommend ? and why ? :D programmershous General 4 07-22-2004 05:12 PM
Programming in Java, looking for a good place on the web for tutorials or books.... jmax24 Programming 3 04-18-2004 04:18 AM
Could you recommend some good linux books fotoguy Linux - General 7 01-12-2004 06:57 PM
Which books do you recommend ? rhodan Linux - Newbie 5 08-28-2001 04:24 AM


All times are GMT -5. The time now is 05:25 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration