Science, asked by vippandian5926, 1 year ago

Define array and its types. how would you represent array in memory and what operations you can perform on an array?

Answers

Answered by san2018
0
An array is defined as an ordered set of similar data items. All the data items of an array are stored in consecutive memory locations in RAM.

1-2- and diementional array
ih heap with subscribe values.. or index
 arithmetic oparations..


Answered by venu10088855222
1
array like structure in which day group number of items into a large unit an array groups of the same time type exist in almost every computer language including BASIC an array must be defined before it can be used to store it specifies an array type and name the items in an array are called elements

there are two types of array
★ one dimensional array or single dimensional array
★ multidimensional array
--------------------------------------------------------------------------------------------------------------------------------------------------------
★one dimensional array or single dimensional array

★ declaration of single dimensional array
they are used when a single sheet of value ARE REquired and we usually use a single look look to manipulate the control variables
★ syntax
data-type array-name [array-size];
★initialising of single dimensional array
it may take any one of the following forms as in the following

------------------------------------------------------------------------------------------------

★multidimensional array
unlike single dimensional array two dimensional array is declared with two sizes and it can be thought of as a matrix dimensional represent number of rows you want and the second time is Null reparation number of columns the declaration takes in the following form
★ syntax
data-type array-size [size1] [size2];

★ initialising of double dimensional array
initialising of double or two dimensional array may take any one of the following forms as in the example
------------------------------------------------------------------------------------------------

:-)
Similar questions