Can inline functions have a recursion? Give the reason?

Answer Posted / guest

Calling the by itself, then the function is no longer
called as Inline. Compiler never know how depth of the
recursion at compilation time. Therefore inline functions
cant have a recursion

Is This Answer Correct ?    14 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use double in c++?

599


Define a constructor - what it is and how it might be called (2 methods)?

604


How new/delete differs from malloc()/free?

615


What is the use of ::(scope resolution operator)?

651


What is #include iomanip?

545






Will a recursive function without an end condition every quit, in practice a) Compiler-Specific (Some can convert to an infinite loop) b) No c) Yes

587


What is stack unwinding?

606


Can recursive program be written in C++?

633


How many characters are recognized by ANSI C++?

898


Is it possible to get the source code back from binary file?

715


how to explain our contribution in the project?

3080


Can you please explain the difference between overloading and overriding?

596


What are friend functions in C++?

624


What is prototype for that c string function?

692


Is c++ still being used?

563