What is the difference between macro and inline()?

Inline functions are expanded by compiler, macros are expanded by the preprocessor. In some sense, inline functions are type safe macros.

No comments: