edited by
607 views
1 votes
1 votes

A) a & b both are wrong

B) a & b both are correct

C) a is correct & b is wrong

D) b is correct & a is wrong

How to solve such qstn??

edited by

1 Answer

1 votes
1 votes
Code A is correct as per explanation given in question. 2 JMP instructions in statements 2 and 4 are exactly as they should be for the given code.

Code B is wrong- the JMP in statement 4 is wrong (statement 2 is a typo?).

Related questions

0 votes
0 votes
1 answer
1
Kai asked Nov 18, 2016
467 views
The answer given was D but isn't array access not a TAC as the following link suggests:https://web.stanford.edu/class/archive/cs/cs143/cs143.1128/handouts/240%20TAC%20Exa...
2 votes
2 votes
1 answer
4
rahul sharma 5 asked Jan 24, 2018
1,263 views
Consider the intermediate code given below:The number of nodes and edges in the control-flow graph constructed for the above code, respectively are X and Y. The value of ...