Search code examples
c++c++11function-prototypes

Does function prototyping impact performance?


I'm curious as to, aside from maintainability, there are any real advantages of function prototyping. At this stage I can only se that it is useful for reading the program but can not find information as to whether the execution is affected because of prototyping.


Solution

  • Does function prototyping impact performance?

    Not at all. Function prototypes only define interfaces. They are not executable code. Executable code lies in implementations of those interfaces.