I have question related to inline function, inline function places in the code in the function to the function call from where it is called. Like if there are two functions main function and func1()
I have question related to inline function, inline function places in the code in the function to the function call from where it is called. Like if there are two functions main function and func1()
Below is the code Now the code inside func1 will be placed in the main function at line from where it is called My question is, in the stack will the new block of memory will be allocated for func1 or only the main function block memory will be there? I got this question because I tried running code on pythontutor, there the different block is showing for func1. But the code is placed in main function only then how new block is created. I hope you got my question, I don't know weather the question is relevant or not, but I am curious to know
enter code here
inline int func1(int x)
{
x++;
return x;
}
int main()
{
int a;
cout<<func1(a) ;
return 0;
}