C: Exercise 4-3 improved by splitting ascending/descending loop into two separate functions.
Channel:
Subscribers:
772
Published on ● Video Link: https://www.youtube.com/watch?v=y9Nftek68XM
Improving exercise 4-3 by using two separate for loops, instead of one single ascending/descending for loop, and checking the compilation results with Godbolt.
Repl: https://replit.com/@pereiradaniel/Separate-ascdesc-order-functions-instead-of-one
Git repo: https://github.com/pereiradaniel/beginning_c/blob/master/ch4/exercises/4_3/refactor6.c
Blog: https://pereiradpg.blogspot.com/2023/01/c-exercise-4-3-improved-by-splitting.html
Other Videos By Daniel Pereira
Tags:
C language
programming
for loop
Godbolt
compilation
efficiency