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
What is a union?
a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above
simple program of graphics and their output display
#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); }
What are types of functions?
What's the right way to use errno?
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..
Explain the use of fflush() function?
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'); }
How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same
Why do we need volatile in c?
what is the role you expect in software industry?
what is the structure pointer?
What is volatile c?
What is #include called?