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

What language does google use?

592


What is a .lib file in c++?

577


What is encapsulation in C++? Give an example.

590


Can we distribute function templates and class templates in object libraries?

595


What is == in programming?

622






How can you quickly find the number of elements stored in a a) static array b) dynamic array ? Why is it difficult to store linked list in an array?how can you find the nodes with repetetive data in a linked list?

645


Why is c++ is better than c?

519


How does a C++ structure differ from a C++ class?

628


What is namespace & why it is used in c++?

610


Is it possible to get the source code back from binary file?

721


How a modifier is similar to mutator?

651


what is upcasting in C++?

725


How would you call C functions from C++ and vice versa?

640


Why are arrays usually processed with for loop?

775


What is the default width for ouputting a long integer using the insertion operator?

695