r/cprogramming • • 4d ago

How should I start learning C programming as a first-year college student?

Hey everyone

I'm currently in my first year of college, and I want to start learning C programming from scratch.

I'm a beginner and sometimes find programming concepts confusing. I don't just want to learn the syntax or memorize programs for exams. I genuinely want to understand programming, improve my logic-building skills, and become good at writing code independently.

Also, should I focus on college syllabus topics first or follow a separate learning roadmap?

Any advice, free resources, personal experiences, or tips would be really helpful.

Thank you! I'm excited to start this journey. 😊

5 Upvotes

18 comments sorted by

3

u/Ormek_II 4d ago

If you have a teacher in college always follow his roadmap. He knows better than you and you will get the best support with questions like that.

You can do whatever in addition.

The most important thing: TRY! Just build your own simple programs, don’t compare to what you see on your tube. Be happy with what you achieve. Whenever you have a small program running, think about how YOU would improve it, modify it, or how you can use, what you just learned, in another program.

I started in basic with

10 print “Hello”
20 Goto 10

In a supermarket.

You will think that you are slow and it seems so easy to others. You are not. It is a tedious business and everyone feels like that when comparing to others. Most of the time, those “others” are already doing it for years and years.

Before I started working at a company, I did programming for more than 13 years as a Hobby at school and at university.

1

u/extoniks 4d ago

I would recommend you to learn the language your college is teaching, it could be C/C++, Java, Python or other. Once you learn a language (syntax, algos, etc) it is not so hard to learn other.

C is a great language but can confuse or even frustrate newcomers because C needs patience. Still if you wanna learn - K&R's The C Programming Language book is great.

1

u/Objective_Buy_7235 4d ago

I learned from this book and did ALL of the exercises except a few "project" ones. 4 weeks of 8 hour days. That really made it stick for me.

3

u/an0th3rbrick 4d ago

"bears learn by doing"... Berenstain Bears

1

u/alkavan 4d ago edited 4d ago

C has very few keywords compared to other languages, roughly 30% if the are rarely used. So to "use" the C language all that is required is just memorizing 30 words (or terms). That's is untrue for other languages, both C++ and Java have over 50 usable keywords, and roughly 90 in total! Memorizing the syntax is part of learning and understanding computer programming, of course, each keywords has a meaning and purpose you must learn as well. Once you'll truly understand what each of the C keywords does and what processor instructions they result, everything else becomes easy. Where to begin? A few years ago I would recommend reading a well established book, and that is still my recommendation. However, if you have access to decent AI you can just start writing some more complex programs, and ask about anything you don't understand yet. When you'll learn C well — everything else would be a piece of cake later, I can absolutely guarantee. I've seen too many academy graduates that "learned" C in college or university, but have not practiced and used it, and by that deprived themselves of actually learning to program computer systems. They become forever dependent in one or another high level technology — usually controlled by a mega corp, and live in an endless state of anxiety for their whole career.

2

u/Fit-Soil-7132 4d ago

THANK YOU BROTHER

2

u/Sad_Plane_4677 4d ago

* your curiculum is prime material for learning to code. Do it. Math and stat are done before, but learning to detect sublte errors needs honing on small problems to do it for larger projects. Same thing goes for learning good coding practices.

* Dont be afraid of doing mistakes. You get experience learning from mistakes and you avoid mistakes from getting experiece.

* write clean and commented code from day 0. Not 1. Day zero.

* learn to not give a fuck about the code editor you or other people use. It's a fight that never ends and never adds value. In fact, try coding with notepad and the likes. It can be an interesting experience.

* Have fun along the way.

1

u/Gold-Part4688 4d ago

If you have non-zero programming knowledge, check out Richard Feldman's course on master.dev (not free). Idk why, but if youre like me, absolutely drawn in by fast talky energetic types, you'll love it. Also makes the footguns very visible, and explains some of the reasoning behind it all. (Though it's not really from a c expert's viewpoint)

1

u/Aromatic_Career_2118 4d ago

I would focus on your courses first. Learning C should be a side-project which would/should come in handy by 3rd year.

1

u/DubiousLogik 3d ago

follow the course work first, then follow your curiosity for fun. Get the core fundamentals from experts, but also have fun side projects (e.g. I wrote a multi timezone clock app since I worked with teams in other countries, plus a UTC display for log files (got tired of computing TZ offset in my head). This clock was not strictly necessary, but it made my life better, and I learned stuff (C# and WPF at first, then rewrote in C for linux (with AI help)).

All the devs I really looked up to had cool side projects always cooking outside of work hours. But they all had solid foundations first. They knew why something was a certain way.

1

u/EchidnaProof7612 2d ago

Try leetcodes or other coding platforms, avoid using ai at the start of your learning journey.

1

u/DanKegel 1d ago edited 1d ago

What everyone said, plus:

Read the Intel 4004 programmer's guide :-) I'm not even quite joking!  See

https://www.codeabbey.com/index/task_view/mul-two

for a simple programming puzzle and tutorial... in 4004 assembly.

The idea is, if you understand the machine, programming becomes less mysterious.

There are saner ways to learn, but this one's worth a shot.

See also https://www.reddit.com/r/Assembly_language/comments/1xf0hzo/comment/19rmw1kjxar6p/ and https://www.reddit.com/r/csMajors/comments/1xyjasy/comment/19srzj8da3e11/ for related and possibly better ideas 

1

u/Admirable-Hotel-9543 22h ago

Hayoth, golden channel for c

-1

u/y0shii3 4d ago

Get on Leetcode

2

u/Fit-Soil-7132 4d ago

THANK YOU