Home » Programming & Data Structure » Programming and data structure miscellaneous » Question

Programming and data structure miscellaneous

Programming & Data Structure

  1. Following declaration of a two-dimensional array in C.
      Char a [100] [100];
    Assuming that the main memory is byte addressable and that the array is stored starting from memory address 0, the address of a [40] [50] is
    1. 4040
    2. 4050
    3. 5040
    4. 5050
Correct Option: B

Given is a [40] [50].
In a [40] [50],
Row = 40
Column = 50
The address is 4050.



Your comments will be displayed only after manual approval.