3. Index
Sl . No TOPIC PAGE
NO
1 Introducing Arrays 1
2 Declaration of Array,Variables,
Creating Array
2
3 The Length Of Arrays 3
4 Initializing Arrays 4
5 Multidimensional 5
4. Introducing Arrays
Array is a data structure that represents a
collection of same type of data
Int num[7];
An array of 7 elements
num reference
num[0]
num[1]
num[2]
num[3]
num[4]
num[5]
num[6]
num[7]
6. Length of Arrays
Once an Array is created ,its size is fixed.it cannot be
changed.
For Example:
int arr[10];
You can not insert any number to arr[11] location because it
is not initialized.
7. Initialization of one
dimensional Arrays
Declaring, creating, initializing in one step:
int num[6]={2,4,6,7,8,12};
Individual elements can also be initialize as:
num[0]=2;
num[1]=4;
num[2]=6;
num[3]=7;
num[4]=8;
num[5]=12;
11. Initializing of Multidimensional Arrays
Illustration
2D array can be initialized in a way to that 1 D ARRAY.
ALL Rows are enclosed by braces.
The elements of each now are enclosed within braces
and seperated by comma.
Syntax:
int [][]array={{1,2,3,4}, {5,6,7,8},
{9,10,11,12}};
12. ACKNOWLEDGEMENT
Firstly I would like to express my gratitude to Mr.Sudip
Kumar De sir ,Department of InformationTechnology,
Asansol Engineering College for his guidance and
providing me this opportunity to do this wonderful
presentation which also helped me in doing a lot of
research and gain knowledge.
THANK YOU