Problem in Inline Function

Go4Expert Member
9Apr2008,18:59   #1
nishu's Avatar
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.
Go4Expert Member
10Apr2008,18:10   #2
harimagic's Avatar
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>>
Go4Expert Member
12Apr2008,13:32   #3
nishu's Avatar
thank you so much.