Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   Problem in Inline Function (http://www.go4expert.com/forums/inline-function-t9885/)

nishu 9Apr2008 18:59

Problem in Inline Function
 
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.

harimagic 10Apr2008 18:10

Re: Problem in Inline Function
 
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>>

nishu 12Apr2008 13:32

Re: Problem in Inline Function
 
thank you so much.


All times are GMT +5.5. The time now is 06:25.