• edited by
705 views
0 0 votes

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%20Examples.pdf

Can someone please clarify?

1 Answer

Best answer
1 1 vote
A[i]=x;

x=A[i] both are valid TAC. Its one of the 7 standard three address code representations given in Aho,Ulman
• selected by
Position:
Show:

Related questions

0 0 votes
1 answers 1 answer
864
864 views
Kai asked Nov 18, 2016
864 views
Consider the following expression:(a+a*(b-c)+(b-c)*d)What is the minimum number of three address statements for the expression?My question is whether we should optimize t...
1 1 vote
1 1 answer
843
843 views
Tushar Shinde asked Jan 12, 2016
843 views
A) a & b both are wrongB) a & b both are correctC) a is correct & b is wrongD) b is correct & a is wrongHow to solve such qstn??