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


Please Help Members By Posting Answers For Below Questions

What do you mean by delegate? Can a user retain delegates?

528


Can you use the function fprintf() to display the output on the screen?

665


What are namespaces in c++?

597


Give 10 points of differences between C & C++.

623


What is the difference between the functions rand(), random(), srand() and randomize()?

727






Write a program to concatenate two strings.

584


What is while loops?

617


How can you quickly find the number of elements stored in a static array?

638


Write some differences between an external iterator and an internal iterator?

584


Define the process of error-handling in case of constructor failure?

571


What does flush do?

563


What is the use of map in c++?

609


Why is c++ considered difficult?

647


what is scupper?

1895


What is the difference between object-oriented programming and procedural programming?

695