Disadvantages of macros in c language?

1 answer

Answer

1059715

2026-08-14 22:25

+ Follow

Actually macro and function are used for diff purposes.A macro replaces its expression code phisically 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.

If you could get any help from the answer then plz increase my trust point.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.