Gate CS-2005 Question Paper With Solutions

Q. 66 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[1] = B[J];         a Indirect addressing
 2 while [*A++];     b Indexed, addressing
 3 int temp = *x;    c Autoincrement

(A) (1, c), (2, b), (3, a)

(B) (1, a), (2, c), (3, b)

(C) (1, b), (2, c), (3, a)

(D) (1, a), (2, b), (3, c)

Answer: (C)

Explanation:

Gate CS-2005 Question Paper With Solutions

Learn More:   Gate EE-2010 Question Paper With Solutions

LEAVE A REPLY

Please enter your comment!
Please enter your name here