r/cprogramming • u/Seczu333 • 3d ago
How should i..?
How should i start learning C as my first language? Could anyone share some advice on where to start with C?
0
Upvotes
r/cprogramming • u/Seczu333 • 3d ago
How should i start learning C as my first language? Could anyone share some advice on where to start with C?
12
u/lfdfq 3d ago
Go write some C code
10
u/nnotg 3d ago
Rename this sub to r/AskHowToLearnC or r/ShouldILearnC.
5
u/MarijuanaWeed419 3d ago
Beej’s guide to C programming is pretty good. I know it says it’s not intended to be an introduction to programming but I didn’t have any issues with it
3
u/henryyoung42 3d ago
K&R - do it old school !
2
u/lounatics 3d ago
On a high level:
1.1 How to set up a code editor + compiler
1.1 How to write a "Hello World" Program.
2.1 like just make some dumb stuff:
- try to complicate your hello world program,
- try to make it differently,
- make it ask the user for their name and greet them personaly
- make it print the contents of a directory.
- and so on...
3.1 What's a problem you'd like to solve? What's a Program you'd like to have?
3.2 try to figure out what you need to know to make it happen!
3.3 try to make it happen.
Use your preferred search engine and the books/guides other have mentioned to solve the problems you encounter in each step and you should be doing ok!
1
u/extoniks 3d ago
As most of us learned - Books like K&R's The C Programming Language and others, Official docs. I also recommend
manpages and I use it a lot till now.1
u/JoacoRyu 3d ago
https://www.reddit.com/r/C_Programming/s/tFg89qBz8G
1
u/gm310509 1d ago
The sidebar? There seems to be a list of resources over there.
-4
u/zezrol 3d ago
Code tracing! Make ai generate or search some study guide online. Pick one topic at a time, build on foundations, make ai generate a simple code for each topic, get a pen and paper, code trace line by line starting from main for visualization. Write your own code.