You are not logged in.
Pages: 1
Can anyone recommend me some decent books about C programming?
I'm looking to get a good comprehension on pointers, arrays, dynamic allocation, passing by reference, ....
I know there are different sites with info about this, but I'm just looking for a really good book too
thx
Last edited by chrisdb (2019-04-28 19:30:46)
Failure is success in progress.
A.E.
Offline
If you want a book, and you haven't read K&R's C yet, that's an obvious start:
https://www.amazon.com/Programming-Lang … way&sr=8-3
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Do not confuse this book with good style, but the exercises in it are highly enlightening.
https://books.google.com/books/about/Th … ueQgAACAAJ
Look around, you may find a pdf.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Online
First, the mandatory "piracy is BAD"... Having said that, here is a link to the C puzzles book (thanks, ewaller, for pointing it out) redacted . Hope this helps.
Last edited by jasonwryan (2019-04-20 01:18:12)
Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd
Offline
Eh ... what the ...
If what is in that link is legally shared, then why the preface about piracy being bad? If it is not legal, WTF is wrong with you that you'd acknowledge something was wrong in one breath then go ahead and do it in the next?
Last edited by Trilby (2019-04-20 01:17:18)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
First, the mandatory "piracy is BAD".
And we have zero tolerance for it here: https://wiki.archlinux.org/index.php/Co … t#Legality
Offline
Eh ... what the ...
If what is in that link is legally shared, then why the preface about piracy being bad? If it is not legal, WTF is wrong with you that you'd acknowledge something was wrong in one breath then go ahead and do it in the next?
Well, I am *pretty* sure it is legal, but I'm not a lawyer (I only know this https://en.wikipedia.org/wiki/Library_Genesis ). For my research, I end up downloading GBs of scanned books/articles from that site, scihub and eqworld (if you can read russian); all of which turn up in relatively straightforward Google searches...
My remark meant that while I am personally against piracy, I am more against hiding knowledge behind paywalls. That link came from a google search, and I think I am allowed to post it, but if you believe following it would violate some law, then don't click on it.
Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd
Offline
Well, I am *pretty* sure it is legal, but I'm not a lawyer (I only know this https://en.wikipedia.org/wiki/Library_Genesis ). For my research, I end up downloading GBs of scanned books/articles from that site, scihub and eqworld (if you can read russian); all of which turn up in relatively straightforward Google searches...
My remark meant that while I am personally against piracy, I am more against hiding knowledge behind paywalls. That link came from a google search, and I think I am allowed to post it, but if you believe following it would violate some law, then don't click on it.
The link was redacted by a moderator; so not clicking on it won't be a problem.
LibGen and associated resources are considered piracy in some jurisdictions and are resultingly, not legal everywhere. Here's a simple guide for you: if you cannot get a link to an official distribution of the source, it probably shouldn't be posted here (this is not a perfect rule; it doesn't always hold true, but it's a good measuring stick).
All the best,
-HG
Offline
I love "How to think like a Programmer"; it's a general book about programming but uses C++. You can improve your problem solving ability with it. it's a great book. if you havn't read it, You should read!
Offline
The Free Programming Books repository on GitHub has a section about C: https://github.com/EbookFoundation/free … books.md#c
"Learn to Code With C - The MagPi Essentials" on that list looks very beginner-friendly to me, so maybe start there: https://www.raspberrypi.org/magpi-issue … s_C_v1.pdf
Offline
Leonid.I wrote:Well, I am *pretty* sure it is legal, but I'm not a lawyer (I only know this https://en.wikipedia.org/wiki/Library_Genesis ). For my research, I end up downloading GBs of scanned books/articles from that site, scihub and eqworld (if you can read russian); all of which turn up in relatively straightforward Google searches...
My remark meant that while I am personally against piracy, I am more against hiding knowledge behind paywalls. That link came from a google search, and I think I am allowed to post it, but if you believe following it would violate some law, then don't click on it.
The link was redacted by a moderator; so not clicking on it won't be a problem.
LibGen and associated resources are considered piracy in some jurisdictions and are resultingly, not legal everywhere. Here's a simple guide for you: if you cannot get a link to an official distribution of the source, it probably shouldn't be posted here (this is not a perfect rule; it doesn't always hold true, but it's a good measuring stick).
All the best,
-HG
Fair enough... I'm sorry for my earlier post.
Last edited by Leonid.I (2019-04-20 18:53:46)
Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd
Offline
Thx for the links, I'll certainly have a look at them, especially "C Programming Language, 2nd Edition"
Failure is success in progress.
A.E.
Offline
I've been reading C Interfaces and Implementations: Techniques for Creating Reusable Software recently. Despite some style choices I don't completely agree with, I've found it quite enlightening. It might go a bit past your goal of just getting a handle on the language itself though.
Last edited by Brunste (2019-04-30 15:03:10)
Offline
I hope I can still offer a suggestion even though this is marked as solved. I self-learned a lot of C then when I decided I needed something more structured I bought "C Programming: A Modern Approach" by K.N. King (2nd edition). Normally I'm all about doing stuff online but there's something nice about having such a definitive reference at my actual off-line fingertips. One of the nice things about C is that it changes at a glacial pace and definitive references are good for a long time.
https://www.amazon.com/C-Programming-Mo … 0393979504
There's (almost) nothing you can't learn for free if you want to but when it comes to programming and comp-sci I've personally found that actual textbooks give me some of the best results next to decent videos or lectures (w/ presentations). Good luck!
Edit: Added edition.
Last edited by sgibber2018 (2019-06-03 02:56:58)
Offline
Pages: 1