News for hackers. Stuff that matters.
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?
Re:Misconceptions about loops in C by zogrodea on Thursday June 27, 2024 @10:44PM (#40817261)
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).