Computer Science, asked by lowkya2, 1 year ago

what is an array ? explain different types of array with example

Answers

Answered by Anonymous
15
ANSWER 
...................



ARRAY IS  A TYPE OF A DATA STRUCTURE WHICH IS THE GROUP OF THE ELEMENTS .AND THIS ALL ELEMENTS ARE OF ONLY 1 DATA TYPE THEY WORK TOGETHER IN A INTEGER OR A STRING .
ARRAY IS THE DATA WHICH IS COMMONLY USED IN THE ALL COMPUTER PROGRAMS TO ORGANISED THE DATA OF THE COMPUTER ...



THE TYPES OF THE ARRAY ARE AS FOLLOWS 
: - 
1. One dimensional (1-D) arrays or Linear arrays
= >  
TEH ELEMENTS IN THE One dimensional (1-D) arrays or Linear arrays ARE IN A MEMORY LOCATION 


2. 
Multi dimensional arrays
=>  
Multi dimensional arrays are Represented by two subscripts
each cooumn is contain of the M * n element 



Answered by venu10088855222
9
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