The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+10 votes
889 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)
asked in CO & Architecture by Veteran (59.4k points)
retagged by | 889 views

1 Answer

+18 votes
Best answer
(c) is the answer.
A[i] = B[j];     Indexed addressing

while(*A++);      Auto increment

temp = *x;       Indirect addressing
answered by Veteran (342k points)
selected by
+1
Ans C

Array implementation- indexed addressing

Pointer, passing array as parameter- indirect addressing

Constant- immediate addressing

Writing relocatable code- base addressing


Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

35,499 questions
42,765 answers
121,498 comments
42,150 users