Object Oriented Programming

1:

Which of the following type of functions is an ideal candidate for being declared inline?    

A.

A function that is small and is not called frequently.

B.

A function that is small and is called frequently.

C.

A function that is not small and is not called frequently.

D.

A function that is not small and is called frequently.

 

Answer : B

Explanation :

If the function is small, it is not going to significantly increase the code size. If it is made inline, there is no function call overhead. How much you gain is proportional to the frequency of call.

Write your comments here:


Report Error
 

Option: A

Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here.