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 do you mean by delegate? Can a user retain delegates?
Can you use the function fprintf() to display the output on the screen?
What are namespaces in c++?
Give 10 points of differences between C & C++.
What is the difference between the functions rand(), random(), srand() and randomize()?
Write a program to concatenate two strings.
What is while loops?
How can you quickly find the number of elements stored in a static array?
Write some differences between an external iterator and an internal iterator?
Define the process of error-handling in case of constructor failure?
What does flush do?
What is the use of map in c++?
Why is c++ considered difficult?
what is scupper?
What is the difference between object-oriented programming and procedural programming?