Inline functions vs Preprocessor macros

后端 未结 14 2365
一个人的身影
一个人的身影 2020-11-22 12:37

How does an inline function differ from a preprocessor macro?

14条回答
  •  星月不相逢
    2020-11-22 13:34

    inline functions will behave as a function call if there exists any iterative or recursive statement in it, so as to prevent repeated execution of instructions. Its quite helpful to save the overall memory of your program.

提交回复
热议问题