edited by
454 views
0 votes
0 votes
what will be the three address code for x=A[i][j] Given A[M][N] and w is word size;

t1=i*N;

t2=t1+j;

t3=t2*w;

t4=base address of array A[M][N]

t5=t4+t3;

x=t5;

My doubt here: Is there any need of t4 variable for storing the base address of arrary or we can directly do it as

t4=A[t3];

x=t4;
edited by

Please log in or register to answer this question.

Related questions

1 votes
1 votes
0 answers
1
TusharKumar asked Dec 23, 2022
577 views
The correct answer given is 3.