What are inline functions?

Answer Posted / laxman

Inline function :-

In genereal function call branching method is there . In
inline function substitution takes place . Inline
functions are expanded during compilation . Exectution
becomes fast and branching is eliminated. Inline word is a
request but not command. If inline is not possible compiler
takes it like a genral function call.
rules:
1 function should be small
2. Controll statements are not valid like for ,while


if u need more mail to me

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is c++ an oop?

792


Is java based off c++?

709


How do you traverse a btree in backward in-order?

806


What are smart pointers?

1192


What is a memory leak c++?

755






Difference between overloaded functions and overridden functions

799


You run a shell on unix system. How would you tell which shell are you running?

873


What is enum c++?

842


Is c++ the hardest language?

725


How will you call C functions from C ++ and vice-versa?

842


Explain shallow copy?

778


What does new in c++ do?

730


What are the benefits of c++?

767


What is the best book for c++ beginners?

753


Discussion on error handling of C++ .

828