which edition of C book, is 'better' to read and learn?

  • (2 Pages)
  • +
  • 1
  • 2

20 Replies - 930 Views - Last Post: 29 September 2013 - 12:35 PM Rate Topic: -----

#1 Hamm01er  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 29-September 13

which edition of C book, is 'better' to read and learn?

Posted 29 September 2013 - 08:38 AM

hi. nice work!
i don't have any question about any error or...
im actually about to read C Tutorial ebook, writen by Dennis M. Ritchie and Brian W. Kernighan.
but i have both editions. 1st and 2nd edition.
there is no problem but, i just thought ask the people who has done these books that which is better?
i mean why there is a 2nd edition? is there any problem with 1st edition?
please tell me! im beginning reading.

Thank you

Is This A Good Question/Topic? 0
  • +

Replies To: which edition of C book, is 'better' to read and learn?

#2 jimblumberg  Icon User is online

  • member icon


Reputation: 4068
  • View blog
  • Posts: 12,549
  • Joined: 25-December 09

Re: which edition of C book, is 'better' to read and learn?

Posted 29 September 2013 - 08:44 AM

Quote

i mean why there is a 2nd edition?

Because the first edition was written before C was standardized, the second edition was written to align the text with the ANSI standard (C89).

IMO, both of the books make excellent references, but I don't recommend either for someone to use to learn the language. There are better books available to teach the language, again IMO.

Jim
Was This Post Helpful? 1
  • +
  • -

#3 Hamm01er  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 29-September 13

Re: which edition of C book, is 'better' to read and learn?

Posted 29 September 2013 - 09:01 AM

View Postjimblumberg, on 29 September 2013 - 08:44 AM, said:

Quote

i mean why there is a 2nd edition?

Because the first edition was written before C was standardized, the second edition was written to align the text with the ANSI standard (C89).

IMO, both of the books make excellent references, but I don't recommend either for someone to use to learn the language. There are better books available to teach the language, again IMO.

Jim

Thank you.
can you please introduce me some sources, some books? cause i've searched already but the result wasn't good enough!
i mean, there are lots of great sources teaching C++ such as : learncpp.com
it is great. but i couldn't find a website like that.
i actually returned to C from C++. C++ can't help me! because i need a low-level-language to Go!...to make a direct contact with CPU. so C is the best choice for me, and Only.
so, if anyone knows any Great tutorial sources for C, please give me the address.

Thank you.
Was This Post Helpful? 0
  • +
  • -

#4 jimblumberg  Icon User is online

  • member icon


Reputation: 4068
  • View blog
  • Posts: 12,549
  • Joined: 25-December 09

Re: which edition of C book, is 'better' to read and learn?

Posted 29 September 2013 - 09:09 AM

Quote

i actually returned to C from C++. C++ can't help me! because i need a low-level-language to Go!...to make a direct contact with CPU. so C is the best choice for me,

What makes you think C++ can't do low-level?

Also if you truly know C++ then either of the books should be of help.

Jim
Was This Post Helpful? 1
  • +
  • -

#5 stdq  Icon User is offline

  • D.I.C Head

Reputation: -1
  • View blog
  • Posts: 64
  • Joined: 15-May 12

Re: which edition of C book, is 'better' to read and learn?

Posted 29 September 2013 - 09:27 AM

Hi, Hamm01er. I think C How to Program from Deitel and Deitel is a good book for you to learn the language. I recommend that you do the exercises provided.

Best,
stdq

This post has been edited by stdq: 29 September 2013 - 09:27 AM

Was This Post Helpful? 1
  • +
  • -

#6 Draps  Icon User is offline

  • D.I.C Head

Reputation: 34
  • View blog
  • Posts: 103
  • Joined: 20-November 10

Re: which edition of C book, is 'better' to read and learn?

Posted 29 September 2013 - 09:46 AM

View Postjimblumberg, on 30 September 2013 - 03:09 AM, said:

What makes you think C++ can't do low-level?


I'm with Jim on this one.

If C++ isn't low level enough for you, why don't you learn assembly instead?
If you already 'know' C++, C programming books probably wont get you any closer to low level programming.

I know I'm quite comfortable using C++ for memory editing, running assembly and shell code.
Was This Post Helpful? 1
  • +
  • -

#7 Hamm01er  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 29-September 13

Re: which edition of C book, is 'better' to read and learn?

Posted 29 September 2013 - 09:47 AM

View Postjimblumberg, on 29 September 2013 - 09:09 AM, said:

Quote

i actually returned to C from C++. C++ can't help me! because i need a low-level-language to Go!...to make a direct contact with CPU. so C is the best choice for me,

What makes you think C++ can't do low-level?

Also if you truly know C++ then either of the books should be of help.

Jim

because i want to develop an Operating System in the future.
yes, the books help me. and i know the Basics of the programming.
i have experiences working with Visual Basic PL. and it was fun!
im not a beginner in programming world. but in C and C++. i know about C+= but the basics only.
and, i put this in mind to create an OS in future. and i know that, that for creating a horrible thing like an OS, i should at least have created some complex programs. and also im reading about Intel Processors.

so, i need time to make myself ready for this work. and i heard for creating an OS, it is better to learn C instead of C++. as i said, because i want to make a direct contact to CPU. im also reading Assembly.

now, i know how difficult is this task, and im not sure if i can succeed in this.....but, the point ism im putting my life in it...
my age is only 21. and i read all the time. now, if you want to advise me, im quite listening.
Was This Post Helpful? 0
  • +
  • -

#8 Draps  Icon User is offline

  • D.I.C Head

Reputation: 34
  • View blog
  • Posts: 103
  • Joined: 20-November 10

Re: which edition of C book, is 'better' to read and learn?

Posted 29 September 2013 - 10:02 AM

I suggest sticking to learning one thing at a time, especially trying to learn two languages at once.

Operating Systems are written by a large amount of people... smart people... I consider myself pretty smart, but putting myself next to a OS developer they are like a sky scraper and I'm a shrub.

If you are still new to programming which it sounds like you are, stick with a higher level programming language. You will save yourself a world of pain. C is fine, it can be a little unfriendly at times in complex programs, so a good grasp on how to debug and find/analyze errors is a must.

IF you really want to learn C a quick google will give you loads of resources. C has been around a long time...

http://www.cprogramm...c-tutorial.html
http://www.learn-c.org/
http://c.learncodethehardway.org/book/
Was This Post Helpful? 0
  • +
  • -

#9 vividexstance  Icon User is online

  • D.I.C Lover
  • member icon

Reputation: 659
  • View blog
  • Posts: 2,270
  • Joined: 31-December 10

Re: which edition of C book, is 'better' to read and learn?

Posted 29 September 2013 - 10:02 AM

C++ is considered by many to be a "better C". The designers of C++ made a huge effort to keep C++ compatible with C. C++ is (as close as possible) source compatible and link/layout compatible with C.
Was This Post Helpful? 2
  • +
  • -

#10 Hamm01er  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 29-September 13

Re: which edition of C book, is 'better' to read and learn?

Posted 29 September 2013 - 10:37 AM

View PostDraps, on 29 September 2013 - 10:02 AM, said:

I suggest sticking to learning one thing at a time, especially trying to learn two languages at once.

Operating Systems are written by a large amount of people... smart people... I consider myself pretty smart, but putting myself next to a OS developer they are like a sky scraper and I'm a shrub.

If you are still new to programming which it sounds like you are, stick with a higher level programming language. You will save yourself a world of pain. C is fine, it can be a little unfriendly at times in complex programs, so a good grasp on how to debug and find/analyze errors is a must.

IF you really want to learn C a quick google will give you loads of resources. C has been around a long time...

http://www.cprogramm...c-tutorial.html
http://www.learn-c.org/
http://c.learncodethehardway.org/book/


i didn't say that that i want to make the OS just on my own!
beside, im not new in programming. i've created some programs with Visual Basic. and even learning C++ was too easy!

and,so, IT IS DIFFICULT TO CREATE AN OS, but, I DO NOT CARE HOW DIFFICULT IT IS!!!
and, do you really think that i didn't google for tutorials?!
there are books. yes. but not as helpful as these 2 books mentioned above.

i will learn C and Assembly. this is my decision. the both 2 languages (C/C++) syntax are almost the same.
anyway, thank you!
Was This Post Helpful? 0
  • +
  • -

#11 vividexstance  Icon User is online

  • D.I.C Lover
  • member icon

Reputation: 659
  • View blog
  • Posts: 2,270
  • Joined: 31-December 10

Re: which edition of C book, is 'better' to read and learn?

Posted 29 September 2013 - 10:40 AM

View PostHamm01er, on 29 September 2013 - 01:37 PM, said:

i didn't say that that i want to make the OS just on my own!
beside, im not new in programming. i've created some programs with Visual Basic. and even learning C++ was too easy!

This statement alone tells us that you're new to programming. If you learned C++ fully, then you would know most of C. C is a subset of C++.
Was This Post Helpful? 1
  • +
  • -

#12 Hamm01er  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 29-September 13

Re: which edition of C book, is 'better' to read and learn?

Posted 29 September 2013 - 10:48 AM

View Postvividexstance, on 29 September 2013 - 10:40 AM, said:

View PostHamm01er, on 29 September 2013 - 01:37 PM, said:

i didn't say that that i want to make the OS just on my own!
beside, im not new in programming. i've created some programs with Visual Basic. and even learning C++ was too easy!

This statement alone tells us that you're new to programming. If you learned C++ fully, then you would know most of C. C is a subset of C++.

no i didn't learn it fully!
i said above that i just learned the basics. and so it was not difficult!

i just say im new in ' C++ '
Was This Post Helpful? 0
  • +
  • -

#13 vividexstance  Icon User is online

  • D.I.C Lover
  • member icon

Reputation: 659
  • View blog
  • Posts: 2,270
  • Joined: 31-December 10

Re: which edition of C book, is 'better' to read and learn?

Posted 29 September 2013 - 10:49 AM

If I were you, I would focus on learning a language so you can use its various features and employ the various techniques that that language has to offer. If you're reading a book, do some of the examples/exercises because you don't truly learn something until you try to use it on your own. Then pick a larger project to work on, and develop your experience with the language that way.

Once you do these things, then you should have a better idea of what you want to do, and what you need to do to get there.

This post has been edited by vividexstance: 29 September 2013 - 10:49 AM

Was This Post Helpful? 2
  • +
  • -

#14 axel1994  Icon User is offline

  • D.I.C Head

Reputation: 83
  • View blog
  • Posts: 167
  • Joined: 27-May 13

Re: which edition of C book, is 'better' to read and learn?

Posted 29 September 2013 - 10:50 AM

View Postvividexstance, on 29 September 2013 - 05:40 PM, said:

View PostHamm01er, on 29 September 2013 - 01:37 PM, said:

i didn't say that that i want to make the OS just on my own!
beside, im not new in programming. i've created some programs with Visual Basic. and even learning C++ was too easy!

This statement alone tells us that you're new to programming. If you learned C++ fully, then you would know most of C. C is a subset of C++.


And to add on this.
Learning C++ doesn't just require you to fully know Object Oriented Programming, but also memory management and such.

Learning all that isn't easy.
And yes, I consider that to be "basic" C++.

As far as books go:
C programming a modern approach 2nd edition is my C bible (it covers both C89 and C99)
The C++ programming language 4th edition is my C++ bible. It's more reference like, but you can still learn from it.

For assembly?
Depends on which micro processor you want to use.

Also every C program can be compiled by a C++ compiler.
So saying that C++ can't do something but C can is not really logical.

This post has been edited by axel1994: 29 September 2013 - 10:57 AM

Was This Post Helpful? 2
  • +
  • -

#15 Hamm01er  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 29-September 13

Re: which edition of C book, is 'better' to read and learn?

Posted 29 September 2013 - 10:52 AM

View Postvividexstance, on 29 September 2013 - 10:49 AM, said:

If I were you, I would focus on learning a language so you can use its various features and employ the various techniques that that language has to offer. If you're reading a book, do some of the examples/exercises because you don't truly learn something until you try to use it on your own. Then pick a larger project to work on, and develop your experience with the language that way.

Once you do these things, then you should have a better idea of what you want to do, and what you need to do to get there.

Thank you.
i will do that.
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2