This a C++ online test question. The test has been done.
class Person
{
std::string name;
public:
std::string const &getname(void) const ;
} ;
inline std::string const &Person::getname() const
{
return name;
}
A: The computer inserts the code of the function getname()
B: The computer generates a call to the function getname()
C: The default parameter values of the calling function are returned
D: All arguments of the function are placed on the memory stack
I choose A. Is it correct ?
Thanks.