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 a union?

601


a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above

853


simple program of graphics and their output display

1458


#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }

772


What are types of functions?

553






What's the right way to use errno?

611


If i have an array 0 to 99 i.e,(Size 100) I place the values 1 to 100 randomly like a[0]=29,a[1]=56 upto array[99].. the values are only between 1 to 100. getting the array values by using scanf.. If i entered one wrong element value line a[56]=108. how can i find it.. and also how to find the missing value in 1 to 100.. and i want to replace the missing values.. any one of them know please post your answer..

1576


Explain the use of fflush() function?

614


What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }

684


How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same

643


Why do we need volatile in c?

733


what is the role you expect in software industry?

1643


what is the structure pointer?

1634


What is volatile c?

509


What is #include called?

557