CPP
Title
Question
what is friend and inline function in c++?
C-and-Cpp First-C-Program 01-02 min 0-10 sec
Answers:
Friend function are outside functions that can access private data in a class. They are defined as normal functions but are declared inside the class with prefix friend.
Inline functions. Usually when we call a function, the control should move from caller function to the called function. But inline functions are those which expand during calling without jumping. function is defined at the place where it are called if it is an inline function
Login to add comment