Can inline functions have a recursion? Give the reason?

Answer Posted / siva

I have tested The answer is....

Yes, you can use but Not preferable.
Inline functions are expanded as macros at compile time.
Generally inline is used if the function has fewer lines of
code.

Is This Answer Correct ?    6 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When there is a global variable and local variable with the same name, how will you access the global variable?

616


How to allocate memory dynamically for a reference?

541


Explain the concept of memory leak?

622


What are the operators in c++?

591


What is a float in c++?

540






What are the benefits of operator overloading?

678


Can create new c++ operators?

567


Can a constructor be private?

573


Can we declare a base-class destructor as virtual?

582


In the derived class, which data member of the base class are visible?

635


What is a list c++?

568


Can you pass an array to a function in c++?

537


What is iostream in c++ used for?

547


What is c++ and its features?

574


Which is the best c++ software?

602