C Programming - C Preprocessor - Discussion


In a macro call the control is passed to the macro.

[A]. True
[B]. False

Answer: Option B


False, Always the macro is substituted by the given text/expression.

Mamatha said: (Sep 11, 2017)  
Can anybody explain about this?

Jason said: (Dec 28, 2017)  
The macro is processed by the preprocessor so the macro is substituted by the given expression. I guess you get confused is because of the indication of the question itself. The question uses the term "macro call" which indicates a macro of a function call. So from the functional point of view, the control does pass to the macro. From this point of view, I don't think it is a good question either.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.