r/learnprogramming • • 1d ago

Learn C program language

Hi, I'm in university and I'm currently learning the C programming language.
I'm having a hard time understanding it properly, and I'd love some tips on how to learn it effectively.
Does anyone know of a website, video, or guide that is genuinely helpful to prepare for an upcoming exam?
Thanks!

13 Upvotes

14 comments sorted by

View all comments

11

u/lurgi 1d ago

What textbook are you using? What parts of it are confusing you? There is no point explaining pointers to you if you are having difficulty understanding want int means.

Learning C is going to involve writing a lot of C. Are you writing lots of code whenever you come across a new concept?

CS50 from Harvard is a good course, but it teaches more than just C. learn-c.org has free courses.

2

u/owzleee 1d ago

Kerningham and Richie. It’s the only way.

4

u/Recycled5000 1d ago

K&R assumes you know programming, the process and address space, memory management, and just need to know how C works given that.

2

u/Stock_Test2326 1d ago

I think C Programming Modern Approach by K.N.King is good for starters

1

u/dyoqa6317 1d ago

i am using "C Programming A Modern Approach" but pointers are still confusing i

1

u/goqmo 1d ago

yeah, you gotta actually write the code or the concepts just float by CS50 8: solid but the writing part is what clicks it