Domanda di colloquio di Continental

inline functions and Macro difference

Risposta di colloquio

Anonimo

21 lug 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