C Reference Book


 
Thread Tools Search this Thread
Top Forums Programming C Reference Book
# 1  
Old 10-03-2008
C Reference Book

Hi All,

Which one do you think is better as the C reference book: C in a Nutshell (O'Reilly, 2005) or C Primer Plus 5th ed. (Sams, 2004)?

I knew both of them should be great, but I certainly do not want to buy both. Any suggestion? Thanks!

Last edited by zx1106; 10-03-2008 at 08:55 AM..
# 2  
Old 10-03-2008
My first choice is neither, but rather the K&R standard: The C Programming Language (book - Wikipedia, the free encyclopedia). It really is the best book. One of the books' authors designed the language while the other designed the AWK language.

While I like O'Reilly books, these are generally targeted toward a slightly more sophisticated audience. Reader reviews from Amazon confirm that this book's best features are its detailed reference of the standard library, an absolute necessity if you are going to be programming in a non-Windows environment; the book also contains explanations of using gdb and make, rather necessary tools for modern C development in UNIX. By contrast, the reviews about the Sams book indicate that at 900+ pages, this book is geared toward even the beginning programmer, and is described as teaching a "Plain Vanilla" C, ie, not especially for UNIX nor Windows.
# 3  
Old 10-03-2008
Thanks for your suggestion! I just bought C Programming Language 2nd ed. (Prentice Hall), do you think that should be enough? I am just wondering if I also need to get a reference book. By the way I am doing programming in UNIX most of the time.
# 4  
Old 10-03-2008
What kind of applications will you be writing? Kernel modules? System daemons? X applications? HPC (MPI) / scientific programming?
# 5  
Old 10-03-2008
Most are scientific programming and text processing.
# 6  
Old 10-04-2008
Then I would go with C programming in a nutshell. Here are two books I found on Amazon. Based on their TOC, these are recommended:

Amazon.com: String Processing and Text Manipulation in C: Selected Data Structures and Techniques/Book and Disk (Prentice Hall Series on Programming Tools and M): Bernice Sacks Lipkin: Books

Amazon.com: Introduction to Scientific Programming: Computational Problem Solving Using Maple and C: Joseph L. Zachary: Books

The second book covers the all-important topic of dealing with numbers inside programming languages. While this may not seem a big deal at first, it turns out that accumulation of "round-off" error can have huge implications. For instance, using single precision floating point as opposed to double precision can save 20 to 30 % processing speed, but it can also guarantee your results will be absolute mush.

Best of luck to you.
# 7  
Old 10-12-2008
C Programming Language, 2nd Ed by Brian W. Kernighan Dennis M. Ritchie
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Perl de-reference code reference variable

Guys, May i know how can we de reference the code reference variable.? my $a = sub{$a=shift;$b=shift;print "SUM:",($a+$b),"\n";}; print $a->(4,5); How can we print the whole function ? Please suggest me regarding this. Thanks for your time :) Cheers, Ranga :) (0 Replies)
Discussion started by: rangarasan
0 Replies

2. UNIX for Dummies Questions & Answers

Book reference

hello I am looking for book reference far Linux books that have information that is up to date. Example: Running Linux, O`Reilly, year 1995. Or Linux Administration, A beginners guide, 5`th ed, Mc Graw Hill Osbourn, year 2009. Thank you (2 Replies)
Discussion started by: cowLips
2 Replies

3. UNIX for Dummies Questions & Answers

awk language reference: book

Gurus, I am looking for a book on Awk programming. A quick Google search gave me Amazon.com: The AWK Programming Language (9780201079814): Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger: Books by Alfred Aho. Is there anything other than that? Any advice? Thanks. Al. (1 Reply)
Discussion started by: alan
1 Replies

4. Shell Programming and Scripting

Perl reference

Hi all, I have a reference named $test. it points to the data structure as follows 'test' => }, ... (1 Reply)
Discussion started by: Damon sine
1 Replies

5. AIX

Required AIX Simulator \Command reference book

Sir, Iam required AIx simulator If any send the download link I required it for practice (2 Replies)
Discussion started by: arif185
2 Replies

6. AIX

AIX Reference Book

Hi Guys, Can any one please provide me the link where i can download good reference book for AIX. (2 Replies)
Discussion started by: shabu
2 Replies

7. Programming

Reference to a const

Can any one explain how the statement '2' in the following statements is a legal one. int & ref = 3; // Illegal statement - Compiler error. const int& ref=3 ; // Compile and executes properly. Thanks in Advance, Arun (1 Reply)
Discussion started by: arun.viswanath
1 Replies

8. UNIX for Dummies Questions & Answers

Unix book reference

Does anyone here have a favorite? I just wanted to find a reliable book which is meaty in content and still easily understandable.. (3 Replies)
Discussion started by: mandarin14
3 Replies
Login or Register to Ask a Question