answersLogoWhite

0


Best Answer

1. Find out the address of the element A(4,5,2) where A is a 3-dimensional array with subscript limits 1≤ i ≤6, 1≤ j ≤7 and 0≤ k ≤4 when A is in row major addressing. Assume base address is 1000 and word size is 2.

Answer:

Array(depth,col,row) means A(4,5,2)

Address= BASE+ ((depthindex*col_size+colindex) * row_size + rowindex) * Element_Size

ADDRESS=1000+((4*7+5)*5+2)*2

(1000+((33*5)+2)*2

(1000+(167*2))

(1000+334)

1334
User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Find out the address of the element A452 where A is a 3-dimensional array with subscript limits 1 you 6 1 j 7 and 0 k 4 when A is in row major addressing Assume base address is 1000 and word size is 2?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

True or false when accessing an element of an array such as numbers are the square braces called a subscript?

False. The square braces are the subscript operator. The subscript is the operand, the zero-based offset index that is passed to the operator.


How do you find greatest no using array in java?

Assume that the greatest number is the first element (subscript zero). Compare with each element in the array (starting with subscript one), and every time you find one that is greater than the greatest so far, set your variable "greatest" to this number.


If structure is arraythen an individual array element can be accessed by writing a variable?

A structure is not an array. Individual array elements are accessed through a number, called a "subscript". This subscript can be a constant, or a variable, or any expression that can be evaluated to give an integer.A structure is not an array. Individual array elements are accessed through a number, called a "subscript". This subscript can be a constant, or a variable, or any expression that can be evaluated to give an integer.A structure is not an array. Individual array elements are accessed through a number, called a "subscript". This subscript can be a constant, or a variable, or any expression that can be evaluated to give an integer.A structure is not an array. Individual array elements are accessed through a number, called a "subscript". This subscript can be a constant, or a variable, or any expression that can be evaluated to give an integer.


An algorithm of deleting linked list?

To delete a linked list walk through the list and delete the memory allocated to each element, remembering the next element address, and then iterating or recursing the process using the next element address, until the next element address is null.


Write A programme of calculating address of one element of multi dimensional matrix?

If the element is a[i][j][k][l], then it's address is &a[i][j][k][l]

Related questions

Why does oxygen not have a subscript?

Oxygen does not have a subscript since it is an element. Subscripts are usually found in the chemical formula of a compound and not an element.


How is the number of atoms of a specific element in a compound denoted by?

The subscript to the left of the element symbol (unless it doesn't have a subscript; then the number of of atoms in the element is 1)


Why is the number placed below an element symbol in a chemical formula is called a subscript?

This number is the number of atoms of this element in the formula; and subscript meaning is down.


The elements that make up a compound and the exact number of atoms of each element in a unit of the compound can be?

Subscript (:This is a subscript: (Na2) the "2" is the Subscript.


what number represents the subscript in the formula shown?

The letter or letters that represent an element are called its atomic symbol. The numbers appearing as subscripts in the chemical formula indicate the number of atoms of the element immediately before the subscript. If no subscript appears, one atom of that element is present.


Does a subscript tell how many atoms of an element are in a unit of a compound?

Yes. No subscript means that there is just one.


What is the relationship between the value of the subscript and the value of the array element in c?

You can access the array-element via index (or subscript), but it is not possible the other way around.


What does the subscript indicate in the chemical formula?

The number of atoms of that element in the molecule


What does a subscript show in a chemical formula?

The subscript in a chemical formula represents the amount of that atom in that compound's formula.


What is the purpose of a subscript in a chemical equation?

the purpose of a subscript is to tell how many atoms of that chemical is used in the formulaThe number of atoms of the same element in the molecule ~APEX


Does a subscript only apply to the element it follows?

Yes


What number will be subscript for element b?

The subscript is the number of atoms.Example: U3O8Uranium octoxide has 3 uranium atoms and 8 oxygen atoms.