Multiple choice

If A [2] [2] [2] contains element 1 2 3 4 5 6 7 8. Then A [0] [0] [1] contains which element?

  1. 1

  2. 2

  3. 4

  4. 7

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Three dimensional array consists of 2D array. First 2 is indicating there are two matrices. So A(0)(0)(1 ) is indicating to 2. A(1)(1)(1) can be written as (((*a +1)+ 1)+1 ), so A(0)(0)(1 ) is referring to second memory location, which is 2. So option as 2 is correct.