Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: Recommended books for learning C?

  1. #11
    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)

  2. #12
    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

  3. #13
    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.

  4. #14
    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.

  5. #15
    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

  6. #16
    Join Date
    Jan 2008
    Beans
    1,532

    Re: Recommended books for learning C?

    Quote Originally Posted by momrocker View Post
    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.
    Most C programmers don't actually use C99, and most C books don't teach it.

    Quote Originally Posted by cprofitt View Post
    K&R is what most will recommend.
    http://en.wikipedia.org/wiki/K%26R_C
    K & R is a great book for programmers, but not for people with no programming experience.

    Quote Originally Posted by zkriesse View Post
    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
    First off, they can't use the Cafe because it's closed. Secondly standards and differences between languages are actually important when learning a programming language.

    Anyway, I really don't think C is a good programming language for beginners because nowadays it is really more of a niche language than a general-purpose one. Hence the lack of good beginners C books.

  7. #17
    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?

    I asked a few folks on my LUG mailing list who program in C.

    They agreed with K&R, but also recommended - C Primer Plus by Stephen Prata

    I apologize to the OP for all the folks that have made this thread go off topic. I hope that the two books I recommended help you in your endeavors.

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

    Re: Recommended books for learning C?

    Back to the topic...

    I was trying to avoid suggestions for K&R by asking for the book to conform to the current standard. I want a book that I would be able to learn major programming concepts from that would aid in my overall understanding of programming, not so much a tool for applying these concepts to a new programming language. Also, I have avoided cprogramming.com because of how much they constantly refer to C++'s "superiority", even in their C tutorial. It gets annoying after a while. So, should I go with this one? Does anyone else have an opinion on that book?

    Thanks again!

    EDIT: Just noticed more people posted while I was writing this, will read those, too.

    EDIT: C Primer Plus seems to be exactly what I was looking for, though I am open to any other suggestions if there are any.
    Last edited by momrocker; February 5th, 2011 at 10:21 PM.

Page 2 of 2 FirstFirst 12

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
  •