InterviewSolution
| 1. |
Advantages Of A Macro Over A Function? |
|
Answer» 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. 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. |
|