this post was submitted on 27 Jun 2023
10 points (100.0% liked)

Programming

13373 readers
1 users here now

All things programming and coding related. Subcommunity of Technology.


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 1 year ago
MODERATORS
 

what is the best way to learn C ? I know basic python but would like to learn C, I tried searching online but couldn't find a good resource that's good for a beginner like me. any suggestions ?

you are viewing a single comment's thread
view the rest of the comments
[–] thingsiplay@beehaw.org 8 points 1 year ago (1 children)

There is no single best way for every beginner. When I web search for "how to learn c programming", then a lot of tutorials will appear. It would be good to know what does make them "bad resource" in your opinion, so one can give a better suggestion. Also it would be good to know what your end goal with C is; systems programming? cli programming? why is Python not enough? do you want work as a C programmer somewhere?

Read a book about C, follow the examples and try to solve stuff alongside, play with the code. Take your time. And look out that its not too old, as the language and tools changed over time. Here is a suggestion: A complete and up to date open source book as downloadable PDF

[–] ShadowCat@lemmy.dbzer0.com 1 points 1 year ago

I just want to learn the low level stuff about how programs are written in C, and things like how system starts processes, how programs interact with the OS etc, (I guess that's basically systems programming ?).

It would be good to know what does make them “bad resource” in your opinion

some that I've looked up seem rather shallow and don't explain things well, what I'm struggling with is the memory allocation stuff, like what is malloc ? realloc ? calloc ?

why is Python not enough?

Python is enough, I'm happy with it; I just want to learn more.