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.
Asked: 2021-05-07 11:00:00 +0000
Seen: 10 times
Last updated: Nov 29 '22