4
Most read
5
Most read
9
Most read
Sardar Vallabhbhai Patel
institute of technology
Name - Nariya Priyank
ID -16BEMEF011
Enrollment no. -160410119047
Subject -CPU
Topic -Concept of Array, One dimension
array and two dimension array
Branch -Mechanical-1
Batch -A
Introductions of array
-An array
 A single name for a collection of data values
 All of the same data type
 Subscript notation to identify one of the values
 The array is important concept and helps the
programmer in managing many variable of the
same type
Arrays can be divided into three
category
 1. Single Dimensional Array
 2. Two dimensional Array
 3. Multi dimensional Array
Some example where the concept of an
array can be used
List of product and their cost sold by a store
Test score of a class of a student
Table of a daily rainfall data
List of the costumer and their telephone data
Single Dimensional Array
Dimensional refers to the array’s size , which is how
big the array is.
A single or one dimensional array declaration has
the following form,
datatype arrayname[size];
Here, datatype defines the type of array elements,
it can be int, char, float, long int etc.
The arrayname is the name of variable which
represents the array, while size which is represents
in the [ ] symbol represents the size of the array.
Creating Arrays
 Data type array-name[size];
Example:
int num[10];
num[0]references the first element in the array.
num[9]references the last element in the array.
Graphically, array a can be represented like this.
Array elements
Index 0 1 2 3 4 5 6 7 8 9
12 45 34 2 33 65 76 8 6 67
Declaring Array Variables
 Data type array name[index];
Example:
int list[10];
char num[15];
float hat[20];
The 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.
Two dimensional
 This type of array represents and store data in
matrix form
 The syntax for two dimensional array is :
datatype variablename [rowsize][columnsize]
 Where ,variablename represent the name of an
array ,rowsize indicate the number of rows in
table ,columnsize indicates number of columns
in an array .
 For example
Int sales[3][12];
Here , the row size is 3, so row number spans from 0 to
2,while column number spans from 0 to 11
Column
row 0 1 2 3 4 5 6 7 8 9 10 11
0
1
2
50 23 7 11 23 48 52 69 54 42 88 99
25 23 26 49 50 41 20 56 17 15 23 62
23 15 42 52 69 87 86 95 58 56 96 36
Example of Two dimension Array
Thank you

More Related Content

PPTX
2D Array
PPTX
Array in C
PPTX
Arrays & Strings
PPTX
Array in c language
PPTX
PPTX
arrays and pointers
PPT
Two dimensional array
PPTX
Arrays 1D and 2D , and multi dimensional
2D Array
Array in C
Arrays & Strings
Array in c language
arrays and pointers
Two dimensional array
Arrays 1D and 2D , and multi dimensional

What's hot (20)

PPT
Array in c
PPTX
Array Introduction One-dimensional array Multidimensional array
PPTX
Arrays in Data Structure and Algorithm
PPTX
Presentation on array
PPTX
PPTX
Arrays in c
PPT
Multidimensional array in C
PPTX
Arrays in C language
PPTX
ARRAY
PPTX
Arrays In C++
PPTX
Arrays in C++
PPTX
Functions in c language
PPT
One Dimensional Array
PPTX
Arrays in c
PPT
Abstract data types
PPTX
PPTX
Data Types - Premetive and Non Premetive
PPT
PPTX
Array in c++
PPTX
Programming in c Arrays
Array in c
Array Introduction One-dimensional array Multidimensional array
Arrays in Data Structure and Algorithm
Presentation on array
Arrays in c
Multidimensional array in C
Arrays in C language
ARRAY
Arrays In C++
Arrays in C++
Functions in c language
One Dimensional Array
Arrays in c
Abstract data types
Data Types - Premetive and Non Premetive
Array in c++
Programming in c Arrays
Ad

Similar to concept of Array, 1D & 2D array (20)

PPTX
array-160309152651.pptx
PPT
uderstanding arrays and how to declare arrays
PPTX
lec 2- array declaration and initialization.pptx
PPT
arrayy.ppt
PPTX
Basic array in c programming
PDF
Array in C full basic explanation
PPT
Arrays Basics
PPT
Lecture 15 - Array
PPTX
Array in-c
PPT
PPTX
Array in c
PPTX
ARRAYS.pptx
PPT
Mesics lecture 8 arrays in 'c'
PPTX
PPTX
Ppt on arrays in c
PPTX
PDF
Array and its types and it's implemented programming Final.pdf
PDF
02 arrays
PDF
array-160309152651.pptx
uderstanding arrays and how to declare arrays
lec 2- array declaration and initialization.pptx
arrayy.ppt
Basic array in c programming
Array in C full basic explanation
Arrays Basics
Lecture 15 - Array
Array in-c
Array in c
ARRAYS.pptx
Mesics lecture 8 arrays in 'c'
Ppt on arrays in c
Array and its types and it's implemented programming Final.pdf
02 arrays
Ad

More from Sangani Ankur (6)

PPT
The meaning and process of communication
PPTX
Ramjet engines
PPTX
PPTX
seminar for collage level
PPT
projection of points-engineering graphics
PPT
bottom up process for nenometirial
The meaning and process of communication
Ramjet engines
seminar for collage level
projection of points-engineering graphics
bottom up process for nenometirial

Recently uploaded (20)

PPTX
Information Storage and Retrieval Techniques Unit III
PDF
distributed database system" (DDBS) is often used to refer to both the distri...
PDF
Computer System Architecture 3rd Edition-M Morris Mano.pdf
PPTX
Sorting and Hashing in Data Structures with Algorithms, Techniques, Implement...
PPTX
Software Engineering and software moduleing
PPTX
Graph Data Structures with Types, Traversals, Connectivity, and Real-Life App...
PDF
Unit I -OPERATING SYSTEMS_SRM_KATTANKULATHUR.pptx.pdf
PPTX
mechattonicsand iotwith sensor and actuator
PDF
Soil Improvement Techniques Note - Rabbi
PPTX
A Brief Introduction to IoT- Smart Objects: The "Things" in IoT
PDF
Introduction to Power System StabilityPS
PDF
Applications of Equal_Area_Criterion.pdf
PDF
Unit1 - AIML Chapter 1 concept and ethics
PPTX
CONTRACTS IN CONSTRUCTION PROJECTS: TYPES
PPTX
Management Information system : MIS-e-Business Systems.pptx
PDF
August -2025_Top10 Read_Articles_ijait.pdf
PPTX
ASME PCC-02 TRAINING -DESKTOP-NLE5HNP.pptx
PPTX
Measurement Uncertainty and Measurement System analysis
PDF
Prof. Dr. KAYIHURA A. SILAS MUNYANEZA, PhD..pdf
PPTX
Feature types and data preprocessing steps
Information Storage and Retrieval Techniques Unit III
distributed database system" (DDBS) is often used to refer to both the distri...
Computer System Architecture 3rd Edition-M Morris Mano.pdf
Sorting and Hashing in Data Structures with Algorithms, Techniques, Implement...
Software Engineering and software moduleing
Graph Data Structures with Types, Traversals, Connectivity, and Real-Life App...
Unit I -OPERATING SYSTEMS_SRM_KATTANKULATHUR.pptx.pdf
mechattonicsand iotwith sensor and actuator
Soil Improvement Techniques Note - Rabbi
A Brief Introduction to IoT- Smart Objects: The "Things" in IoT
Introduction to Power System StabilityPS
Applications of Equal_Area_Criterion.pdf
Unit1 - AIML Chapter 1 concept and ethics
CONTRACTS IN CONSTRUCTION PROJECTS: TYPES
Management Information system : MIS-e-Business Systems.pptx
August -2025_Top10 Read_Articles_ijait.pdf
ASME PCC-02 TRAINING -DESKTOP-NLE5HNP.pptx
Measurement Uncertainty and Measurement System analysis
Prof. Dr. KAYIHURA A. SILAS MUNYANEZA, PhD..pdf
Feature types and data preprocessing steps

concept of Array, 1D & 2D array

  • 1. Sardar Vallabhbhai Patel institute of technology Name - Nariya Priyank ID -16BEMEF011 Enrollment no. -160410119047 Subject -CPU Topic -Concept of Array, One dimension array and two dimension array Branch -Mechanical-1 Batch -A
  • 2. Introductions of array -An array  A single name for a collection of data values  All of the same data type  Subscript notation to identify one of the values  The array is important concept and helps the programmer in managing many variable of the same type
  • 3. Arrays can be divided into three category  1. Single Dimensional Array  2. Two dimensional Array  3. Multi dimensional Array Some example where the concept of an array can be used List of product and their cost sold by a store Test score of a class of a student Table of a daily rainfall data List of the costumer and their telephone data
  • 4. Single Dimensional Array Dimensional refers to the array’s size , which is how big the array is. A single or one dimensional array declaration has the following form, datatype arrayname[size]; Here, datatype defines the type of array elements, it can be int, char, float, long int etc. The arrayname is the name of variable which represents the array, while size which is represents in the [ ] symbol represents the size of the array.
  • 5. Creating Arrays  Data type array-name[size]; Example: int num[10]; num[0]references the first element in the array. num[9]references the last element in the array. Graphically, array a can be represented like this. Array elements Index 0 1 2 3 4 5 6 7 8 9 12 45 34 2 33 65 76 8 6 67
  • 6. Declaring Array Variables  Data type array name[index]; Example: int list[10]; char num[15]; float hat[20];
  • 7. The 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.
  • 8. Two dimensional  This type of array represents and store data in matrix form  The syntax for two dimensional array is : datatype variablename [rowsize][columnsize]  Where ,variablename represent the name of an array ,rowsize indicate the number of rows in table ,columnsize indicates number of columns in an array .
  • 9.  For example Int sales[3][12]; Here , the row size is 3, so row number spans from 0 to 2,while column number spans from 0 to 11 Column row 0 1 2 3 4 5 6 7 8 9 10 11 0 1 2 50 23 7 11 23 48 52 69 54 42 88 99 25 23 26 49 50 41 20 56 17 15 23 62 23 15 42 52 69 87 86 95 58 56 96 36
  • 10. Example of Two dimension Array