What is use of recursion in c language | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 8

What is use of recursion in c language

19th Jan 2018, 5:04 AM
Anurag Singh
Anurag Singh - avatar
5 Answers
+ 10
same as in every language: less code for complicated tasks
19th Jan 2018, 5:29 AM
Jeremy
Jeremy - avatar
+ 8
thanks
19th Jan 2018, 7:04 AM
Anurag Singh
Anurag Singh - avatar
+ 8
Recursion simply replace looping statements.
25th Feb 2018, 9:54 AM
Ananya Srivastava
Ananya Srivastava - avatar
+ 3
Recursion when a function call by itself. and also as #Anna Recursion simply replace looping statements. in loop resources and mamory use is more. but recursion doesn't use more resources and memory. we use it like in factorial and etc....
25th Feb 2018, 10:09 AM
Samim Rahimi
Samim Rahimi - avatar
+ 1
u can solve u r problem without iterations and through recursion it reaches the code as on base level and then return the occurred result so it is better then iteration
24th Mar 2018, 12:49 PM
JoinShashank
JoinShashank - avatar