Re:Misconceptions about loops in C
by ummonk on Thursday June 27, 2024 @10:24PM
(#40817178)
Aren’t you leaving out the initialization in your recursive example though?
[ Parent
| on HN ]
You're right. I didn't notice that, but I guess the initialisation would be the caller function's responsibility or there would be a wrapper function with a default initialisation value (maybe with the recursive example nested inside the wrapper).