0 votes
in C Plus Plus by
What are macros in C Language? What are its advantages and disadvantages in C Language?

1 Answer

0 votes
by

Macros are abbreviations for lengthy and frequently used statements. When a macro is

called the entire code is substituted by a single line though the macro definition is of several

lines.

The advantage of macro is that it reduces the time taken for control transfer as in 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 questions

0 votes
asked Jan 7 in C Plus Plus by GeorgeBell
0 votes
asked Mar 10, 2020 in C Plus Plus by rahuljain1
...