C Programming - C Preprocessor - Discussion

Discussion Forum : C Preprocessor - True / False Questions (Q.No. 5)
5.
Macro calls and function calls work exactly similarly.
True
False
Answer: Option
Explanation:

False, A macro just replaces each occurrence with the code assigned to it. e.g. SQUARE(3) with ((3)*(3)) in the program.

A function is compiled once and can be called from anywhere that has visibility to the funciton.

Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.