I've searched for the definition of an inline function, and basically all sources provide this answer: "An inline function is one for which the compiler copies the code from the function definition directly into the code of the calling function rather than creating a separate set of instructions in memory."
I thought an inline function would be useful to work with functions and pass the value of an argument x, which is in main() scope, into function. That way, I thought the argument in main() scope would be affected and changed since the inline function does not copy the value but writes the actual code into the main() scope.
I expect the argument to be changed, yet it did not. Then what is the problem? Or is there something I've msised?