![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Hobbyist Programmer
|
book, version, compiler
I am a computer engineering student. I want to learn C for the follwoing reasons
There are many different C versions to date. I know K&R is the frist standard and is the core of modern C versions. Next comes all the ANSI/ISO versions. The two books I listed cover the first ANSI C version. My question is what version of C do I learn with respect to what I want to do? Same as versions, there are multipule C/C++ compilers. I assume gcc is the "best" one out there, as I am leaning more towards the linux side of programming. For mircocontrollers I have seen FOSS compilers for families of controllers. I know some of the things I want to do can be done using C++. I would prefer to learn C first before moving into the OOP of C.
__________________
i dont know much about programming but i try to help |
|
|
|
|
|
#2 |
|
Professional Programmer
![]() Join Date: Sep 2005
Posts: 419
Rep Power: 4
![]() |
Re: book, version, compiler
>I want to learn C for the follwoing reasons
That covers a lot of ground... >I already have this book http://www.amazon.com/Programming-AN...dp/0672303396/ Yes, it's pretty good. However, you have an older edition. >A lot of people like and recomend this book http://www.amazon.com/Programming-La...dp/0131103628/. For good reason. K&R was the book that a lot of people learned C from. However, it's not the best option if C is your first language, and the newest edition only covers C89. >There are many different C versions to date. K&R C is the dialect of C described in the first edition of K&R. C89 was ANSI's attempt to standardize the language in 1989. C90 was ISO's takeover of C89 in 1990 (only very minor changes). C95 was the first amendment of C90 in 1995 that focused primarily on corrections and internationalization features. C99 is the current standard (ratified in 1999), and makes sweeping changes. C0x is the presumed next standard. >My question is what version of C do I learn with respect to what I want to do? Most C programmers stick to a common subset of C95 and C99 so that they can be portable now, yet remain portable when C99 is fully assimilated. I'd recommend that you learn C99, but refrain from using too many of the latest and greatest features. "C Primer Plus" by Stephen Prata is a good beginner's book, and the 5th edition covers C99. Generally, you should look for C books to be written within the last five years or so, as anything older is highly likely not to cover C99. Even with the five year leeway, you still might see books that don't cover the latest standard. >I assume gcc is the "best" one out there, as I am leaning more towards the linux side of programming. "Best" is subjective. Intel has a fantastic compiler, and they offer it for free on Linux for non-commercial use. GCC has the benefit of coming bundled with most installations of Linux. Both support large portions of C99.
__________________
Even if the voices aren't real, they have some pretty good ideas. |
|
|
|
|
|
#3 |
|
Not a user?
Join Date: Sep 2007
Posts: 272
Rep Power: 2
![]() |
Re: book, version, compiler
I've got a C++ and a Java book by Barbara Johnston and they are decent for beginning programmers. She does a pretty good job of explaining things so that you understand the process. I'm sure she probably has a book for C.
|
|
|
|
|
|
#4 |
|
Newbie
Join Date: Nov 2007
Location: Ireland
Posts: 19
Rep Power: 0
![]() |
Re: book, version, compiler
Two C books I have and find good.
http://apress.com/book/view/9781590597354 http://www.oreilly.com/catalog/pcp3/ Code::Blocks is a nice C\C++ IDE, and just went through a recent update. |
|
|
|
|
|
#5 |
|
Newbie
Join Date: Apr 2008
Location: emporia, KS
Posts: 3
Rep Power: 0
![]() |
Re: book, version, compiler
as with any "book" search, search the internet as well. whatever is better for you is fine, but try good internet searches as well. google will do wonders for you if you know how to work it.
|
|
|
|
|
|
#6 |
|
Not a user?
Join Date: Sep 2007
Posts: 272
Rep Power: 2
![]() |
Re: book, version, compiler
There's also a good free book online called Thinking in C, forget the guys name though.
|
|
|
|
|
|
#7 |
|
Professional Programmer
![]() Join Date: Sep 2005
Posts: 419
Rep Power: 4
![]() |
Re: book, version, compiler
>Thinking in C, forget the guys name though
Bruce Eckel, but I thought Thinking in C was still in beta.
__________________
Even if the voices aren't real, they have some pretty good ideas. |
|
|
|
|
|
#8 | |
|
Hobbyist Programmer
Join Date: Dec 2007
Location: Durban, South-Africa
Posts: 193
Rep Power: 1
![]() |
Re: book, version, compiler
Beej's guide to C
http://beej.us/guide/bgc/ It may be an e-book, but I love the light hearted humor in this. Quoted from chapter 7: Pointers Quote:
![]() haha! >BstrucT
__________________
Be kinder than necessary because everyone you meet is fighting some kind of battle. |
|
|
|
|
|
|
#9 |
|
Hobbyist Programmer
|
Re: book, version, compiler
@Narue
If I used the book(published 1994) I have, which is ANSI C (does that mean C89?) would that be ok? After I finish that book I would need to get one that covers the new changes in C99.
__________________
i dont know much about programming but i try to help |
|
|
|
|
|
#10 |
|
Professional Programmer
![]() Join Date: Sep 2005
Posts: 419
Rep Power: 4
![]() |
Re: book, version, compiler
>If I used the book(published 1994) I have, which is
>ANSI C (does that mean C89?) would that be ok? Sure.
__________________
Even if the voices aren't real, they have some pretty good ideas. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| The C Book | sixstringartist | C | 33 | Dec 10th, 2007 3:00 AM |
| Java Book | coldDeath | Java | 11 | Oct 11th, 2006 1:52 AM |
| [tutorial] Simple G++ compiler tutorial | coldDeath | C++ | 7 | Nov 27th, 2005 12:33 PM |
| Is there a mid-level C++ book? | nez | C++ | 18 | May 30th, 2005 6:03 AM |
| C Compiler turbo C | Princeck | C++ | 0 | Feb 24th, 2005 7:31 PM |