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 ?

  • thingsiplay@beehaw.org
    link
    fedilink
    English
    arrow-up
    8
    ·
    1 year ago

    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.comOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      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.