Consider the following declaration of a two-dimensional array in C: char…

GATE · 2002 · CS · Question 2 subparts

Consider the following declaration of a two-dimensional array in C: char a[100][100]; Assuming that main memory is byte-addressable and that the array starts at memory address 0, the address of a[40][50] is:

  1. A.

    4040

  2. B.

    4050

  3. C.

    5040

  4. D.

    5050

Attempted by 434 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…