Diff B/w Macro and Inline

Status
Not open for further replies.

prem4u

Old is Gold
can anyone give brief explaination of diffrence between Macros and inline of C..??

general diffrence, Diff in Memory allocated and used..
 

QwertyManiac

Commander in Chief
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.
 
Status
Not open for further replies.
Top Bottom