Can inline functions have a recursion? Give the reason?
Answer Posted / sandeep mannarakkal
Inline is a request to the compiler , i.e it may get rejected for the following reasons,
1) If there is recursion (recursion have stack over stack, but inline don't have stack)
2) If static variable is available inside inline function
3) if function definition and implementation are available at different files
4) If there is a function pointer to inline function
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are c++ storage classes?
What is endl c++?
Which sort is best for the set: 1 2 3 5 4 a) Quick Sort b) Bubble Sort c) Merge Sort
What are c++ data types?
What is an iterator class in c++?
Why c++ does not have finally?
What is the purpose of extern storage specifier?
What is a map in c++?
Is c++ harder than java?
When there is a global variable and local variable with the same name, how will you access the global variable?
What is the difference between map and hashmap in c++?
Is there a c++ certification?
Is recursion allowed in inline functions?
Do you know what is overriding?
Is overriding possible in c++?