Compiler Design

1:

Which of the following macros can put a macro assembler into an infinite loop ?

A.

MACRO                    M1, X
IF EQ, X                    if X = 0 then....
M1  X + 1
ENDC
IF NE, X :                   IF X ≠ 0 then......
WORD X :                 address (X) is stored here
ENDC
ENDM

B.

MACRO M2, X
IF EQ, X
M2 X
ENDC
IF NE, X
WORD X + 1
ENDC
ENDM

C.

both (a) and (b)

D.

none of these

 

Answer : B

Explanation :

Write your comments here:


Report Error
 

Option: A

Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here.