I have a question regarding inline functions in c/c++ and parameters copying. Lets assume I want to run this function without inline specifier:
void my_func(int param)
{
my_inner_func(param);
}
param will be first copied to my_func and then again to my_inner_func. If the function my_func were inline, would the compiller copy param only once for the my_inner_func parameter or twice anyway.
I would appreciate all help.
Edit: I would like to ask for explanation for both c and c++ if it differs.