answersLogoWhite

0

C-style example:

sometype array [P][Q][R];

addr (array,I,J,K) = (char *)array + sizeof (sometype)*(I*Q*R + J*R + K)

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

Where can I find Vizio Cinema 3D TV?

Vizio has an array of 3D TV's available and can be purchased at most big box and electronics stores.


How 3d arrays are represented in memory?

All multi-dimensional arrays are represented as arrays of arrays. That is, each element of the array is itself an array. Thus a two-dimensional array can be thought of as being a one-dimensional array where every element is a one-dimensional array. A three-dimensional array is therefore a one-dimensional array of two-dimensional arrays. And so on. The actual memory layout of a multi-dimensional array is no different to that of a one-dimensional array of the same size: int a[12]; int b[3][4]; Assuming a 4-byte int, the amount of memory allocated to a is 12 x 4 = 48 bytes. The array b is essentially an array where each element holds an array of 4 integers, thus each element is 16 bytes in length. Given there are 3 such elements in total, the total size of b is 3 x 16 = 48 bytes, the same as was allocated to a. Although the allocations are exactly the same in terms of size, the layouts differ. The array a is an array of twelve 4-byte elements (of type int) whereas array b is an array of three 16-byte elements, each of which is itself an array of four 4-byte elements (of type int). This changes the way we refer to the individual elements of the array. Every element in an array is referred to by its offset address from the start of the array. This is determined by multiplying its zero-based index by the element size. In the case of a, every element is 4-bytes in length, thus element a[2] refers to the element that is offset 2 x 4 = 8 bytes from the start of the array. But in the case of b, however, b[2] would refer to the 16-byte element that is offset 2 x 16 = 32 bytes from the start of the array. Given that we're actually referring to an element which is itself a 4-element array, we must use a second subscript to refer to the elements of that array. Thus b[2][3] would refer to the integer that is offset 3 x 4 bytes from the start of the array referred to by b[2]. Extending this idea into three-dimensions is simply a matter of taking a third subscript into account.


What element is in the fourth period of the periodic table with a total of 3 3d electrons?

The element in the fourth period with 3 3d electrons is titanium (element #22).


What is the 3d element of the periodic table?

Lithium


What element has one 3d electron?

The element with one 3d electron is manganese (Mn), which has the electron configuration [Ar] 3d^5 4s^2.


Which element contains five electrons in its 3D orbital?

The element that contains five electrons in its 3d orbital is manganese (Mn). Manganese has an atomic number of 25, and its electron configuration is [Ar] 4s² 3d⁵. This means it has five electrons in the 3d subshell.


What is an chromium?

Chromium is a 3d element. chromium is a metal.


What is the electron configuration for an element with 5 electrons in the 3d energy sublevel?

B. 1s22s22p63s23p64s23d5----Chromium: [Ar]1s22s22p63s23p63d54s1Manganese: [Ar]1s22s22p63s23p63d54s2


What is the web address of the 3D Center Of Art And Photography in Portland Oregon?

The web address of the 3D Center Of Art And Photography is: http://www.3dcenter.us


Which is the correct electron configuration for an element with 5 electrons in the 3d energy sublevel?

1s2 2s2 2p6 3s2 3p6 4s2 3d5


Which element contains 5 electrons in its 3d orbitals?

Vanadium (V) contains 5 electrons in its 3d orbitals.


What is the pixel's counterpart in 3D?

In digital imaging, a pixel (or picture element) is a single point in a raster image - that is a pixel is always a 2D element. The word pixel is based on a contraction of pix ("pictures") and el (for "element"); similar formations with el for "element" include the words: voxel and texel.The corresponding term in 3D would be a voxel, also call volumetrix pixel - a volume (3D) element.