Presentation on array

19,815 views 16 slides Dec 08, 2018
Slide 1
Slide 1 of 16
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16

About This Presentation

Array


Slide Content

WELCOME TO OUR PRESENTATION [ ARRAY ] IS OUR PRESENTATION TOPIC

Group Name is Backspace

What is Array ? An array is a collection of data items, all of the same type , accessed using a common name. It is simply a grump of data types An array is a derived data type An array is used to represent a list od numbers or list of names

Types of Array One dimensional array Two-dimensional array Multi dimensional array

Accessing Array Elements An element is accessed by indexing the array name. This is done by placing the index of the element within square brackets after the name of the array. For example: double salary= balance[20] ;

unisized array initialization can skip the size of an array in array initialization Element of an array can be added or removed without changing array dimensions. EX: float price[ ]={50,60,70,80};

One dimensional Array SYNTAX: Data-type name [index];

Declaration of one-dimensional Array The general form of array declaration is type array_name [size] Here the type specifies the data type of elements int the array , such as int , float or char The size indicates the maximum numbers of elements that can be stored inside the array. For Example: int a[10]

one dimensional Array scores code & output

Two dimensional Array SYNTAX: Data type- Array name[ row size] [ colum size ]

Declaration of Two dimensional Array 1. The general form of two dimensional array declaration is- type array_name [row size][ columsize ] 2. Here the type specifies the data type of elements of the Array such as int , float or char.

Two dimensional Array scores code & output

Multi dimensional Array SYNTAX: Type_array name[s1][s2][s3]…..s[n]

Need of Array 1. Till now, We have been storing data in simple variables 2. Although storing data of large number of people is use 3. To store this large data, the developers developed the concept of arrays in language.

Advantage of Array Huge amount of data can be stored under single variable name. Searching of data item of faster. Two dimensional Arrays are used to represent the matries .
Tags