Академический Документы
Профессиональный Документы
Культура Документы
Cognifront.com
Objectives
• To Define an Array
• To Create an Array
Cognifront.com
Introduction
Ordered List
Cognifront.com
Arrays
Cognifront.com
How to define an Array?
Data type of the array Name of the array Size of the array
Cognifront.com
Example
set [0] = 11
set [1] = 12
set [2] = 13
set [3] = 14
void create_array()
{
int i=0, n=11;
int number[5];
Cognifront.com
Array Representation
• Multidimensional Array
Cognifront.com
One Dimensional Array
week [0]
week [1]
week [2]
week [3]
week [4]
week [5]
week [6]
Cognifront.com
Two Dimensional Array
Student 1 34 57 40
Student 2 75 90 80
Student 3 90 85 70
Student 4 56 40 54
Cognifront.com