Macros

Question 1
The conditional expansion facility of macro processor is provided to
A
test a condition during the execution of the expanded program
B
to expand certain model statements depending upon the value of a condition during the execution of the expanded program
C
to implement recursion
D
to expand certain model statements depending upon the value of a condition during the process of macro expansion
       Compiler-Design       Macros       Gate-1997
Question 1 Explanation: 
Macro is expanded during the process of Macro expansion.
Question 2
 
A
(ii) only
B
(i) only
C
both (i) and (ii)
D
None of the above
       Compiler-Design       Macros       Gate-1996
Question 2 Explanation: 
If M2 macro is called with X=0, then it will go into an infinite loop.
There are 2 questions to complete.