Does defining a function inline mean that it wont push and
pop things on/off the stack ...like parameters and the
return the address??

Answers were Sorted based on User's Feedback



Does defining a function inline mean that it wont push and pop things on/off the stack ...like par..

Answer / jomb

yes... because the function call to inline function will
substitute the code for the function in the place of
function call, instead of transfering the control to the
function... so, no need to push or pop.

Is This Answer Correct ?    4 Yes 0 No

Does defining a function inline mean that it wont push and pop things on/off the stack ...like par..

Answer / jomb

yes...

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What is static function? Explain with an example

0 Answers  


Will the inline function be compiled as the inline function always? Justify.

1 Answers  


What is difference between shallow copy and deep copy? Which is default?

1 Answers  


What do you mean by persistent and non persistent objects?

1 Answers  


Write a program which employs Recursion

0 Answers  






What is the use of main function in c++?

0 Answers  


What is name mangling?

3 Answers  


Live example for static function?

1 Answers   Infosys,


What do you mean by vtable and vptr in c++?

0 Answers  


What is the role of static keyword for a class member variable?

0 Answers  


What is stoi in c++?

0 Answers  


What is the difference between while and do while loop?

0 Answers  


Categories