Computer Sciences > Gate 2017 Set-1 > Structure
Consider the C struct defines below:

struct data {
    int marks [100] ;
    char grade;
    int cnumber;
};
struct data student;


The base address of student is available in register R1. The field student grade can be accessed efficiently using
A
Post-increment addressing mode. (R1)+
B
Pre-decrement addressing mode, -(R1)
C
Register direct addressing mode, R1
D
Index addressing mode, X(R1), where X is an offset represented in 2โ€™s complement 16-bit representation.

Correct : Structure

Similar Questions

Consider the following C program. #include<stdio.h> struct Ournode { char x, y, z; }; int main() { struct Ournode p = {'1', '0', 'a' + 2}; struct...
#227 MCQ
A palindrome is a word that reads the same forwards and backwards. In a game of words, a player has the following two plates painted with letters. From...
#1 MCQ
Which number does not belong in the series below? 2, 5, 10, 17, 26, 37, 50, 64
#4 MCQ

Related Topics

No tags found

Unique Visitor Count

Total Unique Visitors

Loading......