r/cprogramming • u/Vivid_Feature_4586 • Feb 22 '26
Learning c programming
hey y'all, i am a university student.
if someone want to start learning c programming as a beginner where should I begin with
10
Upvotes
18
u/v_maria Feb 22 '26
sidebar
6
u/ProstheticAttitude Feb 22 '26
Read a recent version of K&R and do the exercises.
Read a LOT of C source code and learn techniques from it. You'll figure out your own projects along the way.
That's really it.
3
u/TehMasterer01 Feb 22 '26
Does your university offer a class?
3
u/knouqs Feb 23 '26
Stay away from AI. You want to learn the nuts and bolts of the language, so don't let AI do any code writing.
Posting questions here seems to be good, but don't get dissuaded by negative comments.
3
u/bi-squink Feb 24 '26
This youtube channel helped me a lot: https://youtube.com/@hirschdaniel
Since I've only learned C through a book, code analyses, projects and youtube I really like his style of coding ,"What do I want? What do I need? Let's check the documentation!"
I'd recommend getting to know a bit how memory works, pointers, structs, functions... and how the linker works. There's lots of stuff on youtube, I especially recommend some unintuitive C behaviours (I think channel LowLevel has some videos on that) like array decay and struct size behaviour.
After that analyze different code, I love skimming system programming in c reddit posts about new packages people made and analyzing them and their code style!
2
u/RetroGameMaker Feb 24 '26
Teach Yourself C in 21 Days is a great book for learning C language programming imo. You can find it really cheaply on ebay or Amazon.
2
u/wolfie-thompson Feb 22 '26
A good, well structured book.
It amazes me how people want to learn to code,but don't want to put actual effort in.
2
u/SeesawUseful701 Feb 22 '26
Fresh beginner here too (13 days in, self-taught) and I directly stated with ideas I wanna create and develop I learned the syntax and concepts on the go. if you care to get advice from another beginner I'd say just decide something small and start building (and use git/github,for me it forces me to commit and code daily)
2
u/Dry-Status2983 Feb 24 '26
cs50x is great and the labs and projects are great
1
u/AverageCincinnatiGuy Feb 24 '26
Get Linux Mint Cinnamon and use it as your daily driver.
Learn all programming and become god-tier programmer in a few months time.
Stop wasting time chasing your tail and going nowhere fast in Windows/MacOS.
1
u/ernestgoldliyes Jun 17 '26
• 2 books just perfect about the language no more no less
• learn to read glibc/c library header files comments (often documented information inside their source file git hosting sites of source tree)
• wikipedia.org first ever getting started to learn about overview of c language, software from c language
• learn to compile/build your c source code to a computer program
NOTE: this whole suggestion should also relate for newcomer c++ language programmer i strongly recommended
2
u/[deleted] Feb 24 '26
[removed] — view removed comment
2
u/[deleted] Feb 22 '26
[removed] — view removed comment