Does defining a function inline mean that it wont push and
pop things on/off the stack ...like parameters and the
return the address??
Answer Posted / 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 |
Post New Answer View All Answers
What is encapsulation in c++?
What is encapsulation in c++ with example?
What does flush do c++?
What do manipulators do?
Is c++ an integer?
Is java based off c++?
How is modularity introduced in C++?
Can circle be called an ellipse?
how can i access a direct (absolute, not the offset) memory
address?
here is what i tried:
wrote a program that ask's for an address from the user,
creates a FAR pointer to that adress and shows it. then the
user can increment/decrement the value in that address by
pressing p(inc+) and m(dec-).
NOW, i compiled that program and opened it twice (in 2
different windows) and gave twice the same address to it.
now look what happen - if i change the value in
one "window" of the program, it DOES NOT change in the
other! even if they point to the same address in the memory!
here is the code snippet:
//------------------------------------------------------
#include Difference between declaration and definition of a variable. What is the use of map in c++? How can you link a c++ program to c functions? Explain shallow copy? Tell me difference between constant pointer and pointer to a constant. Who created c++?