aspose file tools*
The moose likes General Computing and the fly likes Books for learning C language Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "Books for learning C language" Watch "Books for learning C language" New topic
Author

Books for learning C language

Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

Hi.
Do you know any good book for learning the "C Programming Language"?
I found "C Programming Language (2nd Edition) (Prentice Hall Software)", but it seems to me to be a reference more than a learning book.
Thanks.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 13864
    
  10

C is one of the most used programming languages in the world, so there are thousands of books on programming in C. Amazon lists 4,337 books on C and C++, however most of them seem to be reference manuals.

You can find some free online books here: http://www.freetechbooks.com/forum-3.html

If you Google for "c programming tutorial" you'll also find a number of tutorials.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Austin Lee
Ranch Hand

Joined: Feb 18, 2008
Posts: 56
If you want learn c++.
I think < c++ primier> is a nice selection.
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

Well, no.
I want to learn the C language.
What do I need to be installed in my Ubuntu 7.10 to start playing with C?
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24166
    
  30

Any Linux installation should have everything you need already installed.

Kernighan and Ritchie's "The C Programming Language" is a wonderfully readable book; not exactly a tutorial, but far more than a reference. IMO it's the only book you actually need for that language. It's the one I used, many many years ago (actually I used the first edition!)

But as it says above there are thousands of others to choose from.


[Jess in Action][AskingGoodQuestions]
Anand Hariharan
Rancher

Joined: Aug 22, 2006
Posts: 257

Originally posted by John Todd:
Hi.
Do you know any good book for learning the "C Programming Language"?
I found "C Programming Language (2nd Edition) (Prentice Hall Software)", but it seems to me to be a reference more than a learning book.
Thanks.


If K&R2 was too heavy to start off, consider one of the following two books:

C Programming: A Modern Approach, K.N.King, W.W.Norton & Company, 1996.
ISBN 0-393-96945-2

C: How to Program, 5th Ed. Deitel, H.M. & Deitel, P.J. Prentice Hall, 2007.
ISBN: 0-13-240416-8

One of the banes of C is that, it allows you to make mistakes and may or may not complain about it during runtime. This is known as "undefined behaviour". For this reason, it is important that you learn C from a good resource. Those that can be found on the net are generally not peer-reviewed, and their quality is often questionable.

good luck,
- Anand


"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- Antoine de Saint-Exupery
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

I typed:
apropos compiler
And I got those:
---
ANSI 1989 C compiler
c89
c89-gcc

ANSI 1999 C compiler
c99
c99-gcc

GNU project C and C++
compiler
c++
cc
gcc
g++
---
What is the difference between those funky names? which compiler to use?
Appreciate your time.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15286
    
    6

You'll probably just want to use gcc.


GenRocket - A Test Data Generation Platform
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

May I ask how they differ?
Anand Hariharan
Rancher

Joined: Aug 22, 2006
Posts: 257

This merits a different thread (not related to books for learning C any longer).

First, howsoever similar they may be syntactically, C and C++ are different programming languages. The Gnu Compiler Collection (GCC) provides front-ends for different languages, C and C++ being two of them. Use g++ for compiling C++ and gcc for compiling C.

The C language standard was revised/updated in 1999 with new features. My bet is that both c89-gcc and c99-gcc call gcc under the hood, but (either explicitly or implicitly) making sure that the code being compiled strictly makes use of only those features of one particular language specification.

Like advised earlier, for compiling C programs, just call gcc.

- Anand
Nicholas Jordan
Ranch Hand

Joined: Sep 17, 2006
Posts: 1282
Try Ivor Horton to start off with, if you want a well done beginners book that does not short the deeper issues. Any of the dummies books from any local library are a soft landing on the first issues. Next up would be an O'Reilly book, which one being evident from the title. I have found Chapman & Hall to be ideal for field techs. I tried things like K&R and gcc, but gave up on that approach as being mired in historical battles and deeply technical arcade ~ Java being the sensible route out of those issues.

Cay S. Horstmann has a paticularly good intro: Computing Concepts with C++ Essentials, and as well being a Java imprint cover author. You could start with Hello world in gcc using K & R - let us know which approach works for you.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Books for learning C language
 
Similar Threads
Java to C/C++
c++ api
Informal poll: What are the most popular 1st languages?
c++ book
JDK 5.0 made by MICROSOFT!!!