Question: Algorithm and data structure question (CO2, P01, C3) (b) The number of array, Student is given by (ul-L1+1) (u2-L2+1). Find the number of elements in

Algorithm and data structure question
(CO2, P01, C3) (b) The number of array, Student is given by (ul-L1+1) (u2-L2+1). Find the number of elements in Student (-1:3, 2:5). (2 Marks/Markah) (CO2, PO1, C3) (c) Find the addresses of the element Vehicle[-1,-4,2], in the array, Vehicle[-2:4, - 6:10,1:3] with base address a = 200. The address of array Vehicle [i, j, k] is given by a + (i-L1)(u2 - L2 + 1) (u3 - L3 + 1) + (1 - L2)(u3-L3+1) + (k-L3). (2 Marks/Markah) (CO2, P01, C3) (b) The number of array, Student is given by (ul-L1+1) (u2-L2+1). Find the number of elements in Student (-1:3, 2:5). (2 Marks/Markah) (CO2, PO1, C3) (c) Find the addresses of the element Vehicle[-1,-4,2], in the array, Vehicle[-2:4, - 6:10,1:3] with base address a = 200. The address of array Vehicle [i, j, k] is given by a + (i-L1)(u2 - L2 + 1) (u3 - L3 + 1) + (1 - L2)(u3-L3+1) + (k-L3). (2 Marks/Markah)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
