You are not logged in.

#1 2019-04-11 19:17:08

chrisdb
Member
Registered: 2018-05-16
Posts: 92

[SOLVED] C recommended books

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)

Offline

#2 2019-04-11 19:58:56

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 21,920
Website

Re: [SOLVED] C recommended books

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

#3 2019-04-11 21:06:09

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 16,690

Re: [SOLVED] C recommended books

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

Offline

#4 2019-04-20 01:00:05

Leonid.I
Member
From: Aethyr
Registered: 2009-03-22
Posts: 999

Re: [SOLVED] C recommended books

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

#5 2019-04-20 01:16:33

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 21,920
Website

Re: [SOLVED] C recommended books

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

#6 2019-04-20 01:18:54

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 27,743
Website

Re: [SOLVED] C recommended books

Leonid.I wrote:

First, the mandatory "piracy is BAD".

And we have zero tolerance for it here: https://wiki.archlinux.org/index.php/Co … t#Legality


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Online

#7 2019-04-20 14:42:45

Leonid.I
Member
From: Aethyr
Registered: 2009-03-22
Posts: 999

Re: [SOLVED] C recommended books

Trilby wrote:

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

#8 2019-04-20 16:41:47

HalosGhost
Forum Moderator
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 1,786
Website

Re: [SOLVED] C recommended books

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


"All errors are ᴘᴇʙᴋᴀᴄ errors—It's just a matter of narrowing down which keyboard and chair." -Trilby
\ldots

Offline

#9 2019-04-20 18:15:19

mmdamin
Member
From: Iran
Registered: 2019-02-19
Posts: 200
Website

Re: [SOLVED] C recommended books

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

#10 2019-04-20 18:28:46

Morn
Member
Registered: 2012-09-02
Posts: 602

Re: [SOLVED] C recommended books

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

#11 2019-04-20 18:53:34

Leonid.I
Member
From: Aethyr
Registered: 2009-03-22
Posts: 999

Re: [SOLVED] C recommended books

HalosGhost wrote:
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

#12 2019-04-28 19:30:24

chrisdb
Member
Registered: 2018-05-16
Posts: 92

Re: [SOLVED] C recommended books

Thx for the links, I'll certainly have a look at them, especially "C Programming Language, 2nd Edition" smile

Offline

#13 2019-04-30 15:01:15

Brunste
Member
From: United States
Registered: 2018-01-28
Posts: 16

Re: [SOLVED] C recommended books

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

#14 2019-06-03 02:53:44

sgibber2018
Member
Registered: 2019-05-05
Posts: 3

Re: [SOLVED] C recommended books

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

Board footer

Powered by FluxBB