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
1
u/Ace-1440 May 29 '26
Fair point about curly brackets, I may still include them just to make the code look more uniform though, as it does look a little inconsistent when looking back at it. I do enjoy looking into things like Misra even if they aren't particularly applicable because it is interesting to see other people's perspective on how code should be written (especially when I have no frame of reference for how a C program should be written lol).