SlideShare a Scribd company logo
3
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

What's hot (20)

PPTX
Array Introduction One-dimensional array Multidimensional array
imtiazalijoono
 
PPT
RECURSION IN C
v_jk
 
PPT
Multidimensional array in C
Smit Parikh
 
PPT
Arrays Basics
Nikhil Pandit
 
PPTX
Programming in c Arrays
janani thirupathi
 
PPTX
Arrays in Data Structure and Algorithm
KristinaBorooah
 
PPTX
2D Array
Ehatsham Riaz
 
PPTX
Arrays In C Language
Surbhi Yadav
 
PPTX
2- Dimensional Arrays
Education Front
 
PPTX
Recursive Function
Harsh Pathak
 
PPTX
Array Of Pointers
Sharad Dubey
 
PPT
One Dimensional Array
dincyjain
 
PPTX
Array in c++
Mahesha Mano
 
PPTX
Stack using Array
Sayantan Sur
 
PPTX
arrays of structures
arushi bhatnagar
 
PPTX
Union in C programming
Kamal Acharya
 
PPTX
Arrays
RaziyasultanaShaik
 
PPT
Arrays
SARITHA REDDY
 
PPTX
Pointers in c++
sai tarlekar
 
PPT
C++ Arrays
أحمد محمد
 
Array Introduction One-dimensional array Multidimensional array
imtiazalijoono
 
RECURSION IN C
v_jk
 
Multidimensional array in C
Smit Parikh
 
Arrays Basics
Nikhil Pandit
 
Programming in c Arrays
janani thirupathi
 
Arrays in Data Structure and Algorithm
KristinaBorooah
 
2D Array
Ehatsham Riaz
 
Arrays In C Language
Surbhi Yadav
 
2- Dimensional Arrays
Education Front
 
Recursive Function
Harsh Pathak
 
Array Of Pointers
Sharad Dubey
 
One Dimensional Array
dincyjain
 
Array in c++
Mahesha Mano
 
Stack using Array
Sayantan Sur
 
arrays of structures
arushi bhatnagar
 
Union in C programming
Kamal Acharya
 
Pointers in c++
sai tarlekar
 
C++ Arrays
أحمد محمد
 

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

PPTX
array-160309152651.pptx
karunapatel13
 
PPT
Array in c
Ravi Gelani
 
PPT
uderstanding arrays and how to declare arrays
ShirishaBuduputi
 
PPTX
lec 2- array declaration and initialization.pptx
shiks1234
 
PPT
arrayy.ppt
ssuserb82af5
 
PPTX
Basic array in c programming
Sajid Hasan
 
PDF
Array in C full basic explanation
TeresaJencyBala
 
PPT
Lecture 15 - Array
Md. Imran Hossain Showrov
 
PPTX
Array in-c
Samsil Arefin
 
PPT
Arrays
Manthan Dhavne
 
PPTX
Array in c
Harsh Bhanushali
 
PPTX
ARRAYS.pptx
MamataAnilgod
 
PPT
Mesics lecture 8 arrays in 'c'
eShikshak
 
PPTX
Arrays
Abdullahprince787
 
PPTX
Ppt on arrays in c
Abhinay Pratap
 
PPTX
Array
PralhadKhanal1
 
PDF
Array and its types and it's implemented programming Final.pdf
ajajkhan16
 
PPTX
Arrays in C language
Shubham Sharma
 
PDF
02 arrays
Rajan Gautam
 
array-160309152651.pptx
karunapatel13
 
Array in c
Ravi Gelani
 
uderstanding arrays and how to declare arrays
ShirishaBuduputi
 
lec 2- array declaration and initialization.pptx
shiks1234
 
arrayy.ppt
ssuserb82af5
 
Basic array in c programming
Sajid Hasan
 
Array in C full basic explanation
TeresaJencyBala
 
Lecture 15 - Array
Md. Imran Hossain Showrov
 
Array in-c
Samsil Arefin
 
Array in c
Harsh Bhanushali
 
ARRAYS.pptx
MamataAnilgod
 
Mesics lecture 8 arrays in 'c'
eShikshak
 
Ppt on arrays in c
Abhinay Pratap
 
Array and its types and it's implemented programming Final.pdf
ajajkhan16
 
Arrays in C language
Shubham Sharma
 
02 arrays
Rajan Gautam
 
Ad

More from Sangani Ankur (6)

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

Recently uploaded (20)

PDF
Bayesian Learning - Naive Bayes Algorithm
Sharmila Chidaravalli
 
PDF
Designing for Tomorrow – Architecture’s Role in the Sustainability Movement
BIM Services
 
PDF
13th International Conference of Security, Privacy and Trust Management (SPTM...
ijcisjournal
 
PDF
FSE-Journal-First-Automated code editing with search-generate-modify.pdf
cl144
 
PDF
PRIZ Academy - Process functional modelling
PRIZ Guru
 
PPTX
Bharatiya Antariksh Hackathon 2025 Idea Submission PPT.pptx
AsadShad4
 
PPTX
Functions in Python Programming Language
BeulahS2
 
PPTX
Work at Height training for workers .pptx
cecos12
 
PDF
Generative AI & Scientific Research : Catalyst for Innovation, Ethics & Impact
AlqualsaDIResearchGr
 
PPSX
OOPS Concepts in Python and Exception Handling
Dr. A. B. Shinde
 
PDF
June 2025 Top 10 Sites -Electrical and Electronics Engineering: An Internatio...
elelijjournal653
 
PDF
Python Mini Project: Command-Line Quiz Game for School/College Students
MPREETHI7
 
PDF
Authentication Devices in Fog-mobile Edge Computing Environments through a Wi...
ijujournal
 
PPTX
Computer network Computer network Computer network Computer network
Shrikant317689
 
PPTX
FSE_LLM4SE1_A Tool for In-depth Analysis of Code Execution Reasoning of Large...
cl144
 
PDF
Plant Control_EST_85520-01_en_AllChanges_20220127.pdf
DarshanaChathuranga4
 
PDF
bs-en-12390-3 testing hardened concrete.pdf
ADVANCEDCONSTRUCTION
 
PPTX
Kel.3_A_Review_on_Internet_of_Things_for_Defense_v3.pptx
Endang Saefullah
 
PDF
CLIP_Internals_and_Architecture.pdf sdvsdv sdv
JoseLuisCahuanaRamos3
 
PPTX
Stability of IBR Dominated Grids - IEEE PEDG 2025 - short.pptx
ssuser307730
 
Bayesian Learning - Naive Bayes Algorithm
Sharmila Chidaravalli
 
Designing for Tomorrow – Architecture’s Role in the Sustainability Movement
BIM Services
 
13th International Conference of Security, Privacy and Trust Management (SPTM...
ijcisjournal
 
FSE-Journal-First-Automated code editing with search-generate-modify.pdf
cl144
 
PRIZ Academy - Process functional modelling
PRIZ Guru
 
Bharatiya Antariksh Hackathon 2025 Idea Submission PPT.pptx
AsadShad4
 
Functions in Python Programming Language
BeulahS2
 
Work at Height training for workers .pptx
cecos12
 
Generative AI & Scientific Research : Catalyst for Innovation, Ethics & Impact
AlqualsaDIResearchGr
 
OOPS Concepts in Python and Exception Handling
Dr. A. B. Shinde
 
June 2025 Top 10 Sites -Electrical and Electronics Engineering: An Internatio...
elelijjournal653
 
Python Mini Project: Command-Line Quiz Game for School/College Students
MPREETHI7
 
Authentication Devices in Fog-mobile Edge Computing Environments through a Wi...
ijujournal
 
Computer network Computer network Computer network Computer network
Shrikant317689
 
FSE_LLM4SE1_A Tool for In-depth Analysis of Code Execution Reasoning of Large...
cl144
 
Plant Control_EST_85520-01_en_AllChanges_20220127.pdf
DarshanaChathuranga4
 
bs-en-12390-3 testing hardened concrete.pdf
ADVANCEDCONSTRUCTION
 
Kel.3_A_Review_on_Internet_of_Things_for_Defense_v3.pptx
Endang Saefullah
 
CLIP_Internals_and_Architecture.pdf sdvsdv sdv
JoseLuisCahuanaRamos3
 
Stability of IBR Dominated Grids - IEEE PEDG 2025 - short.pptx
ssuser307730
 

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