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 is the use of ::(scope resolution operator)?
Is it possible to have a recursive inline function in c++?
What is c++ code?
What is the output of the following program? Why?
Why c++ is the best language?
How will you call C functions from C ++ and vice-versa?
Why c++ is better than c language?
What is a c++ object?
What is the this pointer?
What are the differences between java and c++?
Why do we use classes in programming?
What is object oriented programming (oop)?
What are the steps in the development cycle?
What are the differences between new and malloc?
How do you clear a set in c++?