It is said that inline functions must be used when our function has short code. My question is what is the meaning of short code?I mean how many lines of code is permitted in inline functions.
Inline function should be as much as shorter. Like nearly 6 to 10 lines. Remember that inline function should not contain any loops in the function. Loops in the sense for() while() etc.. For further information refer <<http://www.parashift.com/c++-faq-lite/inline-functions.html>>