C
Programming and Technical
Advantages of a macro over a function?
Read Solution (Total 1)
-
- Actually macro and function are used for different purposes. A macro replaces its expression code physically in the code at the time of preprocessing. But in case of function the control goes to the function while executing the code.
So when the code is small then it is better to use macro. But when code is large then function should be used.
- 11 years agoHelpfull: Yes(0) No(0)
C Other Question