What are macros? What are its advantages and disadvantages?
Long Answer
Views 22340
Answer:
Macros are abbreviations for lengthy and frequently used statements. When a macro is called the entire code is substituted by a single line through the macro definition is of several lines.
The advantage of macro is that it reduces the time taken for control transfer as in the case of function. The disadvantage of it is here the entire code is substituted so the program becomes lengthy if a macro is called several times.
Related Articles:
This section is dedicated exclusively to Questions & Answers. For an in-depth exploration of C Programming Language, click the links and dive deeper into this subject.
Join Our telegram group to ask Questions
Click below button to join our groups.