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 a type library?
What is a modifier in c++?
What is pointer in c++ with example?
What is oops in c++?
What is the difference between set and map in c++?
How many keywords are used in c++?
When is the copy constructor called?
Can we change the basic meaning of an operator in c++?
What is the difference between a type-specific template friend class and a general template friend class?
What are associate containers?
Can you pass a vector to a function?
What do you mean by funtion prototype?
what are the iterator and generic algorithms.
What does new do in c++?
describe private access specifiers?