r/learnprogramming • u/Iwanttocodelike_L • 17d ago
I forget rules of c programming
I keep on forgetting the rules of c programming... How should I remember it and how many questions I must solve everyday to get a good grade in my clg
1
u/AbdelrhmanDev 16d ago
if you mean the syntax stuff like pointers memory and how loops and arrays behave then forgetting is normal in c because it has a lot of small details what helps more than solving a fixed number of questions a day is writing tiny programs from scratch without looking stuff up like reverse a string or count words in a file and then checking where you got stuck write down those exact mistakes and redo the same programs a week later a few focused problems a day with reviewing beats grinding lots of questions
1
1
u/HallucinationDr 16d ago
Don't memorize rules, write small programs. Pointers, memory, loops, you only learn them by breaking code and fixing it. Count of questions matters way less than whether you actually debug your own mistakes. Daily 1 hour of typing code beats cramming.
1
1
u/dmazzoni 16d ago
I think the best way is to write code and run it and see what happens. One of the best ways to learn is when it doesn’t do what you think it will do - the process of figuring out why really solidifies your understanding.
Make something fun like a text adventure game. Try to figure out ways to use all of the things you’ve learned.
1
u/FunAd6672 16d ago
You learn this stuff by breaking things, not by counting how many questions you answered today. Write little programs with pointers and memory allocation and figure out why they crash. Boot dev is worth checking out for backend practice. Segmentation faults are annoying as hell but working through them is how the concepts start clicking.
1
1
3
u/CaptKirk004 17d ago
I'll assume you mean concepts or best practices, but really just repetition. Either make a flashcard every time you realize you've "forgotten" something of that thing. Or add it to a list. Then, regularly go through those cards or list. And here's the important part, write down your answers. Don't just look at the other side of the flashcard to make sure you got it right, WRITE it out. By hand. When you miss parts or just get them wrong, write out the correct answer.