What are advantages and disadvantages of recursive
calling ?

Answer Posted / swapna

advantages ;
recursive functions can be effectively used to solve
problems where the solution is expressed in terms of
applying the same solution.
disadvantages ;
in recursive we must have an if statement somewhere to
force the func. to return without the recursive call being
executed.otherwise the funct. will never return.

Is This Answer Correct ?    22 Yes 36 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is static volatile in c?

578


Is void a keyword in c?

581


Explain how can a program be made to print the line number where an error occurs?

696


what does static variable mean?

657


What is pointers in c with example?

585






how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.

1214


What is the value of a[3] if integer a[] = {5,4,3,2,1}?

677


How can I write a function analogous to scanf?

662


What are the disadvantages of external storage class?

592


What are different storage class specifiers in c?

621


How do I swap bytes?

634


What is the use of pragma in embedded c?

594


Write a program in c to replace any vowel in a string with z?

699


Explain how do you sort filenames in a directory?

612


How do I convert a string to all upper or lower case?

631