Computer Science, asked by priyankagwpbokaro, 5 months ago

(a) What is an array? Discuss declaration and initialization of 1 and 2 dimensional array,

Answers

Answered by samlalmandal1981
2

Explanation:

smsmslalallwjsjshsbhdospwpskjssnbsbsbsbsbsbbsjsjsjsjakakkakakakakakakkakwowowlwospwo

Answered by amitcchavan1993
2

Explanation:

In computer science, an array data structure, or simply an array, is a data structure consisting of a collection of elements (values or variables), each identified by at least one array index or key. An array is stored such that the position of each element can be computed from its index tuple by a mathematical formula.[1][2][3] The simplest type of data structure is a linear array, also called one-dimensional array.

For example, an array of 10 32-bit (4-byte) integer variables, with indices 0 through 9, may be stored as 10 words at memory addresses 2000, 2004, 2008, ..., 2036, so that the element with index i has the address 2000 + (i × 4).[4]

The memory address of the first element of an array is called first address, foundation address, or base address.

Because the mathematical concept of a matrix can be represented as a two-dimensional grid, two-dimensional arrays are also sometimes called matrices. In some cases the term "vector" is used in computing to refer to an array, although tuples rather than vectors are the more mathematically correct equivalent. Tables are often implemented in the form of arrays, especially lookup tables; the word table is sometimes used as a synonym of array.

Similar questions