Pergunta de entrevista da empresa Continental

inline functions and Macro difference

Resposta da entrevista

Sigiloso

21 de jul. de 2018

inline is just added to the function so that programmer is notifying the compiler that if when program executes .. than stack building and destroying take more time the compiler will just considered as macro and code replacement happens .. its purely compiler decision .. where as, in macros in Pre-processor stage only code will be replaced and code size will be more.

1