Computer Science, asked by BROLY9799, 5 months ago

Defrenciate between friend function and inline function in c++

Answers

Answered by Mrvagh151
2

There's no difference. Both friend and inline are independent declaration specifiers, which can be specified in any order. There's not much point in declaring the function inline in a friend declaration though. More generally, there's no point in specifying inline in any non-defining function declaration.

Similar questions