Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

No, it is not possible to call one function from another function without incurring any overhead in C++. Every function call involves some amount of overhead, including parameter passing, stack allocation, and control transfer. However, some optimizations can be applied to reduce this overhead, such as inlining functions, passing arguments by reference, and using templates instead of function calls.