Question: what is the difference between friend function and inline function explain with examples?
Answer: Answer: A friend function is used to access non public members of the class. A friend function cannot be called by class object. ... And the Inline functions are functions where the call is made to inline functions.