For more discuss and ask question
join this group
Solved By : Tahir
Siddiqui(Mani)
Cs201_GDB_Solution Answer:
"Inline functions should be your choice because.1.It avoid function calling overhead.2. variables pop on the stack overhead is avoided during function call3. No return call from a function to other function which is again an overhead4.No linker complaining happen when include at mutiple places."
Below is argument why normal functions are not choice .
For normal function call the program stores member address of instructions when u call a function. It loads the function into the memory then copies parameter values and jumps to the memory location of function you r calling.Now it run the function codes and stores the function return valu, and then jump back to the location from where function was invoked.
Comments
Post a Comment