this post was submitted on 27 Jan 2026
20 points (100.0% liked)

Programming

24703 readers
287 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS
 

Hey there,

I'm doing some mainlining stuff for Linux phones, so it'd be helpful for debugging to know C.

Sometimes I just have to figure out what a driver does that makes it fail, which is hard without really understanding the syntax.

So the question is: What are some good resources for learning C?

I mean, I roughly know what a variable or function is, as I've played with Arduinos before. I don't need an explanation that covers what programming is, but I also don't know enough to pogram an Arduino without googling the most basic syntax all the time.

I prefer guided stuff that makes me type and think over just reading specs as purely reading specs does not mean it'll stay in the head.

top 3 comments
sorted by: hot top controversial new old
[–] EtherTide@aussie.zone 7 points 16 hours ago

The default answer to everyone who has ever asked this question (including me last year) is to read K&R C, the 2nd edition of the original book published by C's inventor.

I wouldn't recommend powering from start to end like a normal book, I wouldn't even recommend a hard copy, but it's a comprehensive reference and the appendeces etc are good. I haven't read much of it at all tbh but it's nice to have. It's still being sold but you can get it from a tonne of libraries etc. I got a pdf from a "friend".

Otherwise, I recommend watching and following along with Free Code Camp's several hour C tutorial. Their editor of choice is so outdated I was't able to install a working copy, but using JetBrains Clion or VS Code or Visual Studio etc etc are all good replacements.

I'm still new to C so hopefully someone will come along who's been doing it since the 1900's.

The Malloc and Nick Barker YouTube channels also have some excellent C videos that you might like.

[–] theherk@lemmy.world 4 points 16 hours ago (1 children)
[–] HaraldvonBlauzahn@feddit.org 1 points 12 minutes ago

And later https://preshing.com/ on threading and concurrency.