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 does 7/9*9 equal ? a) 1 b) 0.08642 c) 0

583


Snake Game: This is normal snake game which you can find in most of the mobiles. You can develop it in Java, C/C++, C# or what ever language you know.

2440


What is the this pointer?

637


What do the keywords volatile and mean mutable?

608


Is swift faster than go?

617






What is the full form of dos?

570


What is public, protected, private in c++?

657


Explain about templates of C++.

678


What is #include iostream?

743


What is flush c++?

541


What is the difference between function overloading and operator overloading?

579


Write about the retrieval of n number of objects during the process of delete[]p?

576


Can you sort a set c++?

532


Which command properly allocates memory a) char *a=new char[20]; b) char a=new char[20]; c) char a=new char(20.0);

618


Describe about storage allocation and scope of global, extern, static, local and register variables?

738