Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: Recommended books for learning C?

Hybrid View

  1. #1
    Join Date
    Nov 2009
    Beans
    34
    Distro
    Ubuntu 10.04 Lucid Lynx

    Recommended books for learning C?

    Hello all,

    I am a beginner programmer, with a small bit of experience in C++, and I would like to know if there are any tutorial books out there for C that are generally accepted as good quality. I would like to have one that conforms to the latest standard (C99) so that I will be able to take advantage of the new features that were introduced, if there are any that out there.

    Thanks in advance!

  2. #2
    Join Date
    Mar 2010
    Location
    London
    Beans
    924

    Re: Recommended books for learning C?

    I have a good book which taught me alot about C and was easy to follow and understand. The book is "C How to Program" and I believe it's in it's sixth edition (maybe fifth?). The last third of the book or so covers C++ as an OO extension of C. However, the book focuses mainly on ANSI C, but does have chapters on C99 explaining the newer features, but the main bulk of what's in the book is generic C which is the same for both standards.
    - "Make me a coffee..."
    - "No"
    - "sudo make me a coffee"
    - "OK"

  3. #3
    Join Date
    May 2007
    Beans
    245
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Recommended books for learning C?

    Quote Originally Posted by KdotJ View Post
    I have a good book which taught me alot about C and was easy to follow and understand. The book is "C How to Program" and I believe it's in it's sixth edition (maybe fifth?). The last third of the book or so covers C++ as an OO extension of C. However, the book focuses mainly on ANSI C, but does have chapters on C99 explaining the newer features, but the main bulk of what's in the book is generic C which is the same for both standards.
    Do you have any proof that C++ is an OO extension of C?? Are you able to cite a source to back-up your non-rational claim?

    Both C and C++ inherit qualities from the same 'language family', but they are certainly two separate, and distinct, different languages.

  4. #4
    Join Date
    Dec 2009
    Beans
    121
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Recommended books for learning C?

    Quote Originally Posted by NathanB View Post
    Do you have any proof that C++ is an OO extension of C?? Are you able to cite a source to back-up your non-rational claim?
    The creator of C++ Bjarne Stroustrup says that "C++ is an extension of C" and "C++ could be considered a superset of C. C programs will run in C++ compilers."

    http://www.hitmill.com/programming/cpp/cppHistory.html
    http://www.hitmill.com/programming/cpp/whatiscpp.html

    He also wrote that "C++ is a better C" and has this in his FAQ:

    "It is not uncommon to be able to convert tens of thousands of lines of ANSI C to C-style C++ in a few hours. Thus, C++ is as much a superset of ANSI C as ANSI C is a superset of K&R C"

    (http://www2.research.att.com/~bs/bs_faq.html)

  5. #5
    Join Date
    May 2007
    Beans
    245
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Recommended books for learning C?

    Quote Originally Posted by DZ* View Post
    The creator of C++ Bjarne Stroustrup says that "C++ is an extension of C" and "C++ could be considered a superset of C. C programs will run in C++ compilers."

    http://www.hitmill.com/programming/cpp/cppHistory.html
    http://www.hitmill.com/programming/cpp/whatiscpp.html

    He also wrote that "C++ is a better C" and has this in his FAQ:

    "It is not uncommon to be able to convert tens of thousands of lines of ANSI C to C-style C++ in a few hours. Thus, C++ is as much a superset of ANSI C as ANSI C is a superset of K&R C"

    (http://www2.research.att.com/~bs/bs_faq.html)
    I believe his "C++ is a better C" was *his* way of promoting his new language. I'm positive he was aware of alternative ways of "doing OO" in straight C. Good info, all the same. Thanks. But as cprofitt has pointed-out, we've gone off-topic.

  6. #6
    Join Date
    Jul 2009
    Beans
    521

    Re: Recommended books for learning C?

    Ok, seriously...ENOUGH! If you must debate about who did/made what or what is or not is, take it to a different thread...that's why we have the Community Cafe....use it! This is a thread asking for HELP! Not debates. Either help the guy or don't say anything at all...stay on topic please. Thanks

  7. #7
    Join Date
    May 2007
    Beans
    245
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Recommended books for learning C?

    Quote Originally Posted by NathanB View Post
    Do you have any proof that C++ is an OO extension of C?? Are you able to cite a source to back-up your non-rational claim?

    Both C and C++ inherit qualities from the same 'language family', but they are certainly two separate, and distinct, different languages.
    Answer: C++ was once implemented as a pre-processor + macros tacked onto a C compiler.

    http://en.wikipedia.org/wiki/C_preprocessor

  8. #8
    cprofitt's Avatar
    cprofitt is offline νόησις νοήσεως - nóesis noéseos
    Join Date
    Oct 2006
    Location
    平静
    Beans
    1,451
    Distro
    Ubuntu Development Release

    Re: Recommended books for learning C?

    NathanB and DZ:

    Please recommend some books and take the debate about what the standard is to a different thread or to private messages.

  9. #9
    Join Date
    May 2007
    Beans
    245
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Recommended books for learning C?

    Quote Originally Posted by momrocker View Post
    Hello all,

    I am a beginner programmer, with a small bit of experience in C++, and I would like to know if there are any tutorial books out there for C that are generally accepted as good quality. I would like to have one that conforms to the latest standard (C99) so that I will be able to take advantage of the new features that were introduced, if there are any that out there.

    Thanks in advance!
    http://www.cprogramming.com/tutorial.html
    Last edited by NathanB; February 5th, 2011 at 09:14 PM.

  10. #10
    Join Date
    Feb 2008
    Beans
    5,636

    Re: Recommended books for learning C?

    My recent search on this exact subject (I'm a newbie c learner myself) has made me conclude to C Programming, A modern approach.
    K&R should be read AFTER you learn C, imho.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •