News for hackers. Stuff that matters.
Re:Getting started with C by enriquto on Thursday December 17, 2020 @05:11AM (#25454212)
Just read K&R for 10 minutes.
Re:Getting started with C by vkazanov on Thursday December 17, 2020 @05:19AM (#25454250)
:-) I wish people would stop recommending this outdated book, along with a few other default goto books (say, the Dragon book).

Its super optimistic approach is more about the language K&R wanted C to be than the real thing.

Re:Getting started with C by rightbyte on Thursday December 17, 2020 @05:51AM (#25454419)
The book is fine. It is way better to start off by sorting words from stdin with K&R than to follow a tutorial to do a GUI window.
Re:Getting started with C by wsc981 on Thursday December 17, 2020 @07:29AM (#25454965)
I thought the book by K.N. King was a great introduction to (modern) C [0]. Easy to follow, nice questions at end of each chapter including a few challenges.

———

[0]: http://knking.com/books/c2/index.html

Re:Getting started with C by redprince on Thursday December 17, 2020 @05:47AM (#25454388)
Maybe there aren't any good alternatives to "read this go to book as the first book on the topic". Prove me wrong. (Please)
Re:Getting started with C by shadowofneptune on Thursday December 17, 2020 @09:46AM (#25455999)
If an absolute beginner were to use K&R as a start they'd be learning C from 35 or so years ago. It's well written, but not helpful as a reference. Even something as simple as how a function is organized has changed.

C Programming: a Modern Approach teaches C89 and C99, pointing out the differences in features when appropriate. Having used it myself this year, I found it much more helpful than K&R

Re:Getting started with C by icedchai on Thursday December 17, 2020 @11:51AM (#25457321)
If you start with the second edition (C89 / "ANSI C"), you'll discover that C has barely changed.
Re:Getting started with C by shadowofneptune on Thursday December 17, 2020 @09:16PM (#25463060)
Yes, that's true. C Programming is largely a C89 book with small segments about C99.
Re:Getting started with C by icedchai on Thursday December 17, 2020 @11:50AM (#25457316)
I taught myself C using K&R when I was a teenager... back in 1991. The second edition was only a couple of years old.
Re:Getting started with C by 0x008 on Thursday December 17, 2020 @05:22AM (#25454264)
Re:Getting started with C by enriquto on Thursday December 17, 2020 @05:27AM (#25454296)
Exactly.

It's a great read, even if you don't plan on programming in C.

Re:Getting started with C by pjc50 on Thursday December 17, 2020 @05:41AM (#25454365)
The companion Programming in the UNIX Environment has some outdated details but a surprising amount of it still works.