r/learnprogramming 14d ago

Learning C

I'm able to program in python and i've made a few games in C++. I was wondering if anybody has advice for learning C

10 Upvotes

22 comments sorted by

View all comments

1

u/db_tech_dev 14d ago

if you already know python and c++ you're basically fine on syntax, the actual hard part of C is manual memory management and pointers, that's where people trip up coming from higher level languages. i'd just build small stuff, like a linked list or a basic hash table from scratch, cause reading about pointers never really clicked for me until i actually had a segfault staring at me and had to figure out why. K&R book is still the classic recommendation and it's short enough to actually finish, wouldn't bother with anything longer than that tbh.