| |
GeekInterview.com > Interview Questions > Programming > C++
| Print | |
Question: Inline Function Advantages
Answer: What are the advantages of inline functions over macros? |
| August 08, 2009 10:20:03 |
#6 |
| ashwin2090 |
Member Since: August 2009 Total Comments: 1 |
RE: Inline Function Advantages |
Inline function very much confused to use it or not. Well I want to just tell you that it has large number of disadvantages than advantages
Inline function works faster than normal function. They are included in the code where the function call appears.
The main disadvantage of inline function is the memory collapse as the function are included every time where the function call appears. |
| |
Back To Question | |