-
Consider the C struct, defined below :
struct data {
int marks [100];
char grade;
int cnumber; };
struct, data student;
The base address of student is available in register Rl. The field student grade can be accessed efficiently using
-
- Post-increment addressing mode, (Rl)+
- Pre-decrement addressing mode, – (Rl)
- Register direct addressing mode, Rl
- Index addressing mode. X(R1), where X is an offset represented in 2’s complement 16- bit representation.
- Post-increment addressing mode, (Rl)+
Correct Option: D
Since direct access is possible with only index addressing mode. So, option (d) is correct.