0

Whats the need of recursive function in C? Where do we need it except factorial count? Any real example?

13th Jun 2019, 3:45 AM
LIGHT
LIGHT - avatar
4 ответов
+ 2
When you need to display contents of a folder, including it's subfolders. A lot tree operations are recursive as branch of a tree is also a tree.
13th Jun 2019, 5:18 AM
BlazingMagpie
BlazingMagpie - avatar
+ 1
I don't think it's used that often, it's just that some tasks are much simpler to do with recursion than with loops.
13th Jun 2019, 8:02 AM
BlazingMagpie
BlazingMagpie - avatar
0
How often is it used in C ? It's really confusing
13th Jun 2019, 6:34 AM
LIGHT
LIGHT - avatar
0
I see , thanks a lot
13th Jun 2019, 8:54 AM
LIGHT
LIGHT - avatar