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
Do you know what is overriding?
Explain how an exception handler is defined and invoked in a Program.
What are the storage qualifiers?
What are activex and ole?
What is a rooted hierarchy?
Write about the use of the virtual destructor?
Does c++ have finally?
What is the use of main function in c++?
What is difference between malloc()/free() and new/delete?
Out of fgets() and gets() which function is safe to use and why?
What is the difference between structure and class?
What is the best it certification?
What are put and get pointers?
Give an example of run-time polymorphism/virtual functions.
Explain how we implement exception handling in c++?