Monday, 7 November 2011

When should you use a macro rather than a function? in C programming

When should you use a macro rather than a function?

See the answer to FAQ V.10.

Cross Reference:

V.1: What is a macro, and how do you use it?
V.10: Is it better to use a macro or a function?
V.17: How can type-insensitive macros be created?

No comments:

Post a Comment