adplus-dvertising
frame-decoration

Question

What is the syntax of friend function?

a.

friend class1 Class2;

b.

friend class;

c.

friend class

d.

none of the mentioned

Answer: (a).friend class1 Class2;

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the syntax of friend function?