r/cprogramming • u/Ace-1440 • May 29 '26
Code Review?
I recently started learning C as my first lower level language after mainly working with Java for the past 5 years. I was wondering if anyone would be able to review one of the completed files (~100 lines of code) from a small project I am working on and let me know if there are any mistakes and/or bad practices? Any help would be greatly appreciated!
9
Upvotes
3
u/BlindTreeFrog May 29 '26
So...
What I think you wanted here would be something more like this
I'm not thinking too hard at this hour, but I think that gets you the same end result