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

Do you know what is overriding?

795


Explain how an exception handler is defined and invoked in a Program.

852


What are the storage qualifiers?

886


What are activex and ole?

771


What is a rooted hierarchy?

874


Write about the use of the virtual destructor?

786


Does c++ have finally?

745


What is the use of main function in c++?

738


What is difference between malloc()/free() and new/delete?

846


Out of fgets() and gets() which function is safe to use and why?

930


What is the difference between structure and class?

801


What is the best it certification?

821


What are put and get pointers?

830


Give an example of run-time polymorphism/virtual functions.

749


Explain how we implement exception handling in c++?

785