1.3k views

Match each of the high level language statements given on the left hand side with the most natural addressing mode from those listed on the right hand side.

 (1) $A[I] = B[J]$ (a) Indirect addressing (2) while $(^*A++);$ (b) Indexed addressing (3) int temp $= ^*x$ (c) Auto increment
1. (1, c), (2, b) (3, a)
2. (1, c), (2, c) (3, b)
3. (1, b), (2, c) (3, a)
4. (1, a), (2, b) (3, c)
edited | 1.3k views

$C$ is the answer.
$A[i] = B[j]$;     Indexed addressing

while $(^*A++)$;      Auto increment

temp $=^*x$;       Indirect addressing

edited by
+3
Ans C

Pointer, passing array as parameter- indirect addressing

0
arjun sir here increment will be operate on A or *A.
0
Isn't statement 2 is also using pointers for dereferencing A??
+3

Cristine

Priority of post-increment/decrement is higher than dereferencing operator in C...

0

@akash.dinkar12 okay i got confused between *A++ and x=*A++

1
2