Professional Documents
Culture Documents
Reporting in Data Structure
Reporting in Data Structure
PRESENTATION
Array is a data structure consisting of a
collection of elements, each identified
by at least one array index or key. An
ARRAY array is stored such that position of
each element can be computed from
its index tuple by a mathematical
formula.
20XX
ACCESSING ARRAY ELEMENTS
4
ONE – •An array in which the elements are stored and linearly
DIMENSION and can be accessed individually by specifying the index
value of each element stored in the array
AL ARRAY
SYNTAX:
Data-type name[index];
NAME roll[0] roll[1] roll[2] roll[3] roll[4] roll[5] roll[6] roll[7]
VALUES 12 45 32 23 17 49 5 11
ADDRESS 1000 1002 1004 1006 1008 1010 1012 1014
20XX
TWO-
• The general form of two-dimensional array
DIMENSIONA declaration is type array _ name [row size]
[Column size]
L ARRAY • Here the types specifies the data type of
elements of the array such as;
• int, float or char.
TWO -
DIMENSIONAL
ARRAY
MULTI DIMENSIONAL ARRAY
Presentation title
ADVANTAGE OF ARRAY
HUGE AMOUNT OF DATA CAN BE SEARCHING OF DATA ITEM OF TWO DIMENSIONAL ARRAYS ARE
STORED UNDER SINGLE VARIABLE FASTER USED TO REPRESENT THE MATRIX
NAME