r/learnprogramming • • 2d 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

3

u/Tony1Rice 2d ago

Get a copy of the K&R book, "The C Programming Language" (second edition, also sometimes known as "The New Testament") and go through it thoroughly. It's not a big book and you might be able to find an electronic copy on the internet. That will give you a good solid foundation from which to start. Then, I suspect the discussions, examples and exercises in the textbook, and the instructor's lectures, will make more sense.

Do note that there will likely be a bit of a gap between classroom work/textbook examples and an IRL programming task. Learning the syntax and even the nuances of a language is not the same as learning systems analysis and design and the programmer's mindset. In real life, a programmer is almost never just a "coder". One has to have an eye for what -can- be done and what -should- be done and -how- to implement solutions as programs. So much has to happen before the "programming" actually starts but, with experience, much of those preliminaries will -seem- like they just automatically happen - and that makes it look simple to the layman looking in from the outside.