I have a doubt regarding inline functions. Inline functions will not involve any function calls but just replacement of function definition wherever the call is made to the inline function.Inline functions have type enforcement unlike macros. What will happen if recursive functions are made inline?
"inline" isn't a guarantee, it's a request.
Your recursive inline function won't (typically) be inline.