0 votes
in C Plus Plus by
What are the advantages of Macro over function?

1 Answer

0 votes
by
Macro on a high-level copy-paste, its definitions to places wherever it is called. Due to which it saves a lot of time, as no time is spent while passing the control to a new function and the control is always with the callee function. However, one downside is the size of the compiled binary is large but once compiled the program comparatively runs faster.

Related questions

0 votes
asked Jan 11 in C Plus Plus by GeorgeBell
0 votes
asked Jan 11 in C Plus Plus by GeorgeBell
...