C++ Inline Function Question:
Download Questions PDF

Which of followings is/are not false about friend function?

1. It can be called / invoked with class object
2. It has objects as arguments
3. It can have built-in types as arguments
4. It must declared only in public part of a class
5. It does not have this pointer as an argument

a. Only 2,4
b. Only 1,2,5
c. Only 2,3,5
d. All of these

C++ Inline Function Interview Question
C++ Inline Function Interview Question

Answer:

c. Only 2,3,5

Download C++ Inline Function Interview Questions And Answers PDF

Previous QuestionNext Question
Friend function does not have this pointer associated with it.

a. True
b. False
Assigning one or more function body to same name is called_______________.

a. Function Overriding
b. Function Overloading
c. Both a and b
d. None