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 ?

  • davehtaylor@beehaw.org
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    One thing that I did that was super helpful was to try to replicate something from Python.

    (Yes, I know you can just look at the Python source, but just trying to ignore that and thinking about ways one might go about it. Not for production, just for practice)

    For example, I wanted to try making something akin to Python’s lists in C, with all of it’s various operations, e.g. append, insert, length, split, reverse, copy, etc. I started with a single data type, and then wanted to expand it to accept whatever data type I threw at it. A project like this covered a lot of C concepts and really helped me get a grasp on things like data structures, memory management, search algorithms, etc.