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 ?

  • Estinos@lemm.ee
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    1 year ago

    I’ve started learning C four years ago, after a career spent coding ruby/javascript/Go, so I guess I was in the same position than you. I started by reading the GNU C manual, then the Glibc documentation, and the man pages for headers and functions I was using (all glibc functions have a man page ; depending on your distros, it may already be installed or you may need to install a specific package to install them all at once). And of course, reading header files in /usr/include/ is always useful for using this or that library. Later, I discovered the book Modern C and it completed my education to feel at home with C. I can’t say if it’s the best path, but it worked for me.

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

      At the risk of starting a flame war, I find the gnu style absolutely unreadable garbage. The BSD style is far superior, imo.

      I know that’s all personal preference (and of course dependent of if one happens to contribute to particular projects), so you do you. But damn.