Inline Functions

Do inline functions get a separate block in the stack or are they accommodated within the main function block(or wherever they are called)?

hello @diganta_7777

wherever we call inline function then that function call get replaced by the content written inside inline function.

note: inline is a request to compiler to repalce function call with its content (so not all inline function get replaced by its content).

https://ide.codingblocks.com/s/368872 can you please explain how this would work? Suppose, the compiler allows the function to be inline, then since the names of the variables in the main and the function are same(n and x) , how would this work?

@diganta_7777
i m not sure but there must be some provision in compiler using which it (compiler) will differentiate variables in inline and variables in main or somewhere else.

becuase we never get any conflict even if we put same name

OK! Thanks! .