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

How do you sort a sort function in c++ to sort in descending order?

547


Is c better than c++?

604


How do you flush a buffer in c++?

593


How can you create a virtual copy constructor?

574


Which is better turbo c++ or dev c++?

554






Is c++ slower than c?

566


What is virtual table?

607


What is flush c++?

529


What is c++ code?

578


When must you use a pointer rather than a reference?

596


Why c++ is better than c language?

555


the first character in the variable name must be an a) special symbol b) number c) alphabet

595


What is the oldest programming language?

555


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

612


Can c++ be faster than c?

590