C Programming - C Preprocessor - Discussion


Macro calls and function calls work exactly similarly.

[A]. True
[B]. False

Answer: Option B


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.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.