Computer Science, asked by Dar3d3vi1, 12 hours ago

Suppose that each element requires 2 word (byte), the base address of the array a[10] is
250 and lower bound of the array is 0.
(a) Find the address of a[4].
(b) Find the address of a[7].
(c) Find the address of a[9].

Answers

Answered by INDnaman
1

Explanation:

This article focuses on calculating the address of any element in a 1-Dimensional, 2-Dimensional, and 3-Dimensional array in Row major order and Column major order.

Calculating the address Of any element In the 1-D array: A 1-dimensional array (or single dimension array) is a type of linear array. Accessing its elements involves a single subscript that can either represent a row or column index.

Example:

1-D array

To find the address of an element in an array the following formula is used-

Similar questions