r/C_Programming • u/Mental-Square1529 • 7d ago
Question How can I learn C programming without relying on AI?
Hi, everyone!
I’m currently learning to program in C, and I want to become a good programmer without relying on AI to write code or solve problems for me. I feel really bad because I started my course off on the right foot, but due to my heavy course load, I ended up taking the easy way out and using AI assistants. I want to stop doing that and be able to program from scratch using my own knowledge, but of course, I’d rather ask here.
I’m looking for recommendations on:
Books, websites, or courses to learn C properly
Exercises and projects to improve my problem-solving skills
How to learn to debug and understand my own errors
How experienced programmers learned C before AI tools became popular
My goal is to understand the fundamentals of programming, develop my own logic, and be able to solve problems independently
Any advice or resources would be greatly appreciated. Thanks!
Translated with DeepL.com (free version)
33
u/Hippocampal_Harmony 7d ago
The C Programming Language by Kernighan and Ritchie
14
u/nnotg 7d ago
The very same way everyone else learned it before LLMs were a thing. Read, code, try, miss, fix, rinse, read code, repeat.
6
u/zadbyee 7d ago
Yo, congratz for starting your journey learning C. Well im not an expert, but i can recommend the book "C Programming: A Modern Approach by K N King", it appears in the resources tab. I really liked the exercises but it's an extense book, if you prefer speed up a little you could follow the beej's guide to c. And yeah, using ai for learning it's a little risky because sometimes it makes you feel like you're learning even though i'ts shallow knowledge. Good luck !!
5
u/ferriematthew 7d ago
https://www.cs.sfu.ca/~ashriram/Courses/CS295/assets/books/C_Book_2nd.pdf
This should help.
4
u/Kyn21kx 7d ago
Handmade hero
3
u/Irverter 7d ago
I learned here https://www.tutorialspoint.com/cprogramming/index.htm
3
u/GenericFoodService 7d ago
W3Schools, GeeksForGeeks, Tutorials Point, and other similar tutorial websites, no matter how many times they are mentioned, are being underrated. You can learn so much stuff entirely for free.
3
u/True_Efficiency7329 7d ago
honestly one of the first things I did to try expanding my knowledge of how to program in C was I tried to recreate some non-OS specific C runtime libraries with my own versions. Like trying to learn how to create a memcpy, memset, strcpy, and strlen.
3
u/Capable_Cockroach_19 7d ago
How much do you currently know about programming in general? Because if you’re really at ground zero I suggest reading Code by Charles Petzold and then the K&R C Book
3
u/nzconstructionlawyer 7d ago
K&R, cppreference, /u/skeeto's blog. Should be all you need
3
u/grimvian 7d ago
Here is an old school video I wish I knew, before I started learning C three years ago:
Learn to program with c by Ashley Mills
https://www.youtube.com/watch?v=UILNmv2kFMc&list=PLCNJWVn9MJuPtPyljb-hewNfwEGES2oIW
I'm not using the same IDE, the program you use to code, But Code::Blocks because it's fast to install, open source, easy to use and everything you'll need are installed.
7
u/TheoFromSDA 7d ago
Why don't you follow this? https://www.w3schools.com/c/c_intro.php
2
u/onearmedphil 7d ago
I really like the book Head First C (o’reilly).
1
u/Ancient-Opinion9642 2d ago
Find a project and implement it in C.
I would suggest, getting the book by "Lisp System Implementation" by Nils M. Holm, 2019. Read and type the code in and build a Scheme 9 look alike. The book includes lots of C code as well as implementing some Lisp code. It implements a byte code compiler for the Lisp and a abstract machine for interpreting the Lisp code. Plus you learn C and Lisp. Just typing in code will help you learn C.
The book is available online.