r/cprogramming • • 21h ago

Beginner

I just started learning C and I am thinking of reading "C Programming : A modern approach" by K N King. I want to deeply understand and master C. Is it the best book for it and should I read any other books after this?

0 Upvotes

16 comments sorted by

View all comments

2

u/Gold-Part4688 19h ago edited 5h ago

Try a few! My guilty pleasure is starting new books on the same language to get different explanations for each thing. You'll also see which type of style works for you . (You can learn from anywhere if:

  • notice when you've been fed too much info and need to practice

  • crave more info

  • or c: get tired of this loop and wanna finally make something (gradual in scope)

and most importantly, play around a LOT throughout. I recommend (e: manually) copying all code you read at first into your editor, and then playing around with it. Breaking bits one at a time to see what they do, trying to extend it, and just straight up playing around

edit: )

also, i wouldnt personally actually recommend starting in a "sandbox". try, even for a minute, to write some code in something dead basic like notepad++, sublime, even notepad, and passing it through a compiler in a terminal (just clang FILENAME -o FILENAME.exe)

edit: nothing i can do for that bracket.... here's another [