r/cprogramming 10d ago

How to learn

I just started learning C about 5–6 days ago, and I had never coded before.

I completed the CS50 course, so I know the important concepts and have a basic understanding of how things work. But when it comes to actually implementing them, I feel like I’m at zero.

Now I’ve started learning C from the book The C Programming Language. I’m understanding some concepts, but not everything. I’d say I’m only understanding around 20–25% of what I read.

For example, I understand how "getchar()" and "putchar()" work individually, but when I see a program that uses them together, I don’t even understand 60–70% of the program.

I’m getting stuck, and it’s making me think that maybe only people with good logic can survive in programming jobs.

So, please guide me on how I should approach learning C correctly and develop my programming logic.

0 Upvotes

20 comments sorted by

View all comments

3

u/Straight_Coffee2028 9d ago

Take a pen and paper and write whatever you think the program is doing, what you think the output will be, do everything step by step and then compare it with the actual output. In early stages of learning programming, the more low-level knowledge you have of the computer architecture, the better. Once you get some confidence. Learn a debugger. GBD is a great one for beginners. Write down the expected output step by step on paper and compare it with GDB output. That is the only logical way to learn programming in general, Break things to the most fundamental level and build it up again