Tell me when one must use recursion function? Mention what happens when recursion functions are declared inline?



Tell me when one must use recursion function? Mention what happens when recursion functions are decl..

Answer / Ateev Sharma

The use of a recursive function is necessary when dealing with problems that can be broken down into smaller, simpler versions of the same problem. This method allows for efficient problem-solving by avoiding the need to write loops and if-else statements for every possible iteration. However, it's crucial to ensure that the base case is defined to avoid an infinite loop. When recursion functions are declared inline, they are expanded in-place, eliminating the overhead of function calls.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Embedded Systems AllOther Interview Questions

Can a pointer be volatile ?

1 Answers  


What kinds of problems can you hit with lockless model?

1 Answers  


Explain the properties of a object oriented programming language.

1 Answers  


What's the difference between locking and lockless (optimistic and pessimistic) concurrency models?

1 Answers  


Explain how to reduce interrupt latency?

1 Answers  


What is risc architecture?

1 Answers  


Explain me what is the difference between microprocessor and microcontroller?

1 Answers  


Explain how does combination of functions reduce memory requirements in embedded systems?

1 Answers  


Explain me what is kernel paging?

1 Answers  


please send me the faq's in technical interviews on cand datastructures , unix(shell scripting).

0 Answers  


What is loop unrolling?

1 Answers  


What are the 4 types of inheritance relationship?

1 Answers  


Categories