Tell me when one must use recursion function? Mention what happens when recursion functions are declared inline?
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 |
Can a pointer be volatile ?
What kinds of problems can you hit with lockless model?
Explain the properties of a object oriented programming language.
What's the difference between locking and lockless (optimistic and pessimistic) concurrency models?
Explain how to reduce interrupt latency?
What is risc architecture?
Explain me what is the difference between microprocessor and microcontroller?
Explain how does combination of functions reduce memory requirements in embedded systems?
Explain me what is kernel paging?
please send me the faq's in technical interviews on cand datastructures , unix(shell scripting).
What is loop unrolling?
What are the 4 types of inheritance relationship?