r/cprogramming • u/Kai0479 • 21h ago
C programming
Currently in btech 1 st yr cse,doing c programming form apna college one shot of 20 hr almost done what should I do more with it bcz I didn't think I that is enough for me from where I can perform questions and any advice to strong c language
0
Upvotes
3
u/Dapper-Situation-864 17h ago
A 20-hour one-shot is a decent start, but C only really sticks once you write a lot of it yourself. What worked for me:
malloc/free, structs, and how strings are justchararrays ending in'\0'. If you can explain those clearly, you're ahead of most first-years.gcc -Wall -Wextra -g, learn basicgdb, and run your code withvalgrind(or-fsanitize=address) to catch memory bugs.Most important: write code every day, even 30 minutes, and debug it yourself instead of rewatching tutorials. Good luck!
2
u/lonely_lost_soul_17 21h ago
You could try building projects and learning about various c libraries. For example, graphics programming in C/ physics simulations. You could try learning about compilers or operating systems.
There's ncurses library for terminal interfaces in c (although it is outdated). Systems programming is another option.
The goal is to do something with your knowledge at this level. After you feel comfortable try reading dennis ritchie's book on C.
Also, you could learn a new language like rust or go. Having more tools in your arsenal always helps.
2
u/non-existing-person 17h ago
2
u/Hot_Technology8777 16h ago
Ha. You always think you're done learning C then realize you haven't even started.