60) What is the value of X printed by the following program ?
program COMPUTE ( input, output );
varX : integer ;
procedure FIND ( X: real ) ;
begin
X : = sqrt ( X ) ;
end ;
begin
X : = 2
FIND ( X )
writeln ( X )
end
Answer is:
2
Related Compiler Design MCQ with Answers
Answer is:
MACRO M2, X
MACRO M2, X
IF EQ, X
M2 X
ENDC
IF NE, X
WORD X + 1
ENDC
ENDM
Answer is:
x of B, z and y in S1 and x of A, i and y in S2
Answer is:
all of these
Explanation:
An intermediate code form is
* postfix notation
* syntax trees
* three address codes