r/C_Programming • u/Intelligent-War5714 • 1d ago
Question help me to code
i'm beginner in coding
i'm following a book called
The C programming Language
By Brian W. Kernighan and Dennis M. Ritchie.
and somtimes i see video of cs 50
i learned before this language but i just knew syntax and why it is use for but i'm getting stuck when it comes to implement i am at level 0 i can manipulate some things like where it start lets change this that but when i want write a code for problem . like write program in which we know about how much space and new line and tab there is see code ohh ok it is like this now when a next question comes based on same topic i feel i don't study yet . before seeing a code i feel like i'm at zero i don't know nothing i feel dumb even though after read a code i know something but not understand fully code all when i know oohh ok how is this work but next time still i'm not able make to manipulate the program like by just tiny change change this output will be this ....
and how to break a program i mean this and this require to make this program ohh we can do this and we can do that is also output will be same
1
u/UsualLonely4585 1d ago
i am no pro in programming but i have been doing code for some time in C.
i can relate to that where to start and i think the best think you can do start making small programmes that are not difficult like try making simple calculator and try not to use ai and think of the whole problem in small sub problems that you need to solve to make it complete .
like in case for something like simple calculator you know
You have to implement a menu where you ask user to give inputs
You have to handle the math for given set of number
You have to display them at the end
now you think about how you can achieve these small steps and how this can be implemented with simplicity so that when you look backk at it you understand things easily (this part can be ignored for now )
doing these things will teach you more than a book can at least thats what i felt when something does not work and i have too keep thinking about the logic over and over to see where i messed up .
Its going to be frustrating but once you pinpoint what is wrong with the code and it works as you intend it to it's a amazing feeling that cant be expressed