DIGIT-ARC read-only archive · snapshot: July 23, 2026

Diff B/w Macro and Inline

3 posts · originally from https://geek.digit.in/community/threads/diff-b-w-macro-and-inline.99196/

prem4u
prem4u Original post #1
Oct 6, 2008 at 11:19 AM
can anyone give brief explaination of diffrence between Macros and inline of C..??

general diffrence, Diff in Memory allocated and used..
QwertyManiac
Oct 6, 2008 at 11:37 AM
AFAIK, in-line functions are handled by the compiler while macros are handled by the preprocessor. Also, inline would follow the type safety like other normal functions in C++ while macros do not.
a_k_s_h_a_y
Oct 6, 2008 at 11:45 AM
also inline are functions.. not blind substitute like macro.