SlideShare a Scribd company logo
Pooja hirwe
NO.
experiment SLIDE NO:
1
2
3
4
5
6
7
Introduction of array
What is c++/Definition
Introduction of array
Array declaration
Structure of array types
Types of array
Advantage of array
3
4
6
7
8
9-10
11
•it was renamed to C++ in 1983.
•It is pronounced "C-Plus-Plus.“( c was developed in
the early 1970)
• It is therefore possible to code C++ in a "C style" or
"object-oriented style."
•The c++ programming language was
developed by bjarne stroustrup, also at AT &
T Bell Labs.
C++ is an object –oriented programming
language. It is an extension of c with a major
addition of the class construct features of
simula67. The idea of c++comes from the
increment operator ++ of c language there
by suggesting that c++ is an augmented
(incremented) version of c.
What is C++? / Definitions
Pooja
INTRODUCTION OF ARRAY
Arrays are the collection of homogeneous elements such
that the elements are stored in consecutive memory
location or we can say that the “Array is a collection of
variables of the same type of data that are referred by a
common name, These elements are referenced
respectively by an index set consisting of ‘n’ consecutive
numbers.
An array stores a list of finite number (n) of
homogeneous data elements(i.e. Data elements of the
same type)the number(n) is called length or size or
range of an array. when upper bound and lower bound of
an array are given, its size is calculated follows-
Array size (length)=UB –LB+1
Array Declaration
 Declaration is an important process for a variable so that
the compiler will know what kind o variable, containing
which type of value and of what size is required by the
user.
therefore, an array is also declared as other
variable.
Syntax of array declaration is as follows-
Int - N [a];
Type of data Name of Variable Size of length
TYPES OF ARRAYS
1-ONE-DIMENSIONAL ARRAYS 2-MULTI-DIMENSIONAL ARRAY
TWO-DIMENSIONAL ARRAYS Tree dimensional arrays
Comprised of
finite
homogeneous
elements.
Comprised of
elements, each
of which is
itself an array.
•Arrays can of following types:
1. One dimensional (1-D) arrays or Linear arrays
2. Multi dimensional arrays
(a) Two dimensional (2-D) arrays or Matrix arrays
(b) Three dimensional arrays
1. One dimensional (1-D) arrays or Linear arrays:
In it each element is represented by a single subscript.
The elements are stored in consecutive memory
locations.
• EXAMPLE- A [1], A [2], ….., A [N].
2. Multi dimensional arrays:
(a) Two dimensional (2-D) arrays or Matrix arrays:
In it each element is represented by two subscripts. Thus a two
dimensional m x n array A has m rows and n columns and
contains m*n elements. It is also called matrix array because in
it the elements form a matrix.
EXAMPLE- A [2] [3] has 2 rows and 3 columns and 2*3 = 6
elements.
(b) Three dimensional arrays:
In it each element is represented by three subscripts. Thus a
three dimensional m x n x l array A contains m*n*l elements.
EXAMPLE- A [2] [3] [2] has 2*3*2 = 12 elements.
Advantages: OF ARRAY
1. It is used to represent multiple
data items of same type by using
only single name.
2. It can be used to implement
other data structures like linked
lists, stacks, queues, trees, graphs
etc.
3. 2D arrays are used to represent
matrices.
Pooja

More Related Content

PPT
Lecture 9
Soran University
 
PPTX
Lect9
Jamsher bhanbhro
 
PPTX
Arrays
Mubashar Iqbal
 
PPTX
Data Applied: Clustering
DataminingTools Inc
 
PPTX
Arrays in c language
tanmaymodi4
 
PPT
7.basic array
Mir Riyanul Islam
 
PPTX
Presentation on array
topu93
 
Lecture 9
Soran University
 
Data Applied: Clustering
DataminingTools Inc
 
Arrays in c language
tanmaymodi4
 
7.basic array
Mir Riyanul Islam
 
Presentation on array
topu93
 

What's hot (18)

PPT
Matlab
Maria Akther
 
PPT
Arrays Basics
Nikhil Pandit
 
ODP
C++ arrays part1
Subhasis Nayak
 
PDF
Arrays In C
yndaravind
 
PPTX
Arrays in c
AnIsh Kumar
 
PPTX
Array in c++
Mahesha Mano
 
PDF
Java part 2
ACCESS Health Digital
 
PPTX
Array in c
AnIsh Kumar
 
PPTX
Array in c
AnIsh Kumar
 
PPTX
Concepts of Arrays
Yashh Pandya
 
PPTX
Introduction to Array ppt
sandhya yadav
 
PPT
Lecture 2a arrays
Victor Palmar
 
PPTX
Arrays In C Language
Surbhi Yadav
 
PPTX
Array in c
Harsh Bhanushali
 
PPTX
Pointer to array and structure
sangrampatil81
 
PPTX
Array
Rahul Sharma
 
PPT
Arrays
Manthan Dhavne
 
Matlab
Maria Akther
 
Arrays Basics
Nikhil Pandit
 
C++ arrays part1
Subhasis Nayak
 
Arrays In C
yndaravind
 
Arrays in c
AnIsh Kumar
 
Array in c++
Mahesha Mano
 
Array in c
AnIsh Kumar
 
Array in c
AnIsh Kumar
 
Concepts of Arrays
Yashh Pandya
 
Introduction to Array ppt
sandhya yadav
 
Lecture 2a arrays
Victor Palmar
 
Arrays In C Language
Surbhi Yadav
 
Array in c
Harsh Bhanushali
 
Pointer to array and structure
sangrampatil81
 
Ad

Viewers also liked (16)

PPT
Good and bad microorganisms
Ravi Ramchandani
 
PDF
Интернет-магазин - как все сделать правильно
awgua
 
PPT
Educ 6706 literate environment analysis presentation
Pamela Adams
 
PPTX
Evaluation 1
tiatesfaye
 
PPTX
Georgia ONmyLINE: Adult Learning Consortium Presentation
Georgia ONmyLINE
 
PPTX
Question 4
Shan3009
 
PPTX
Women in music videos
Shan3009
 
PPTX
World Menus' Business Model Hypothesis
PMariz
 
PPTX
Code for Nara 紹介
康司 石塚
 
PPTX
TWC Group 1: Week One Questions
abonsall
 
PPT
2014 National Association of Women MBAs Presentation
PhoenixStrategicPerformance
 
PDF
Kawalan serangga organik minyak neem semambu
Halimah Mahmod
 
PDF
Unit3 l1
Samirah77
 
PDF
The Gateway Project: A Church in the Mall
jesusflock
 
PPTX
Markus Larsen
Gilb3rt1
 
Good and bad microorganisms
Ravi Ramchandani
 
Интернет-магазин - как все сделать правильно
awgua
 
Educ 6706 literate environment analysis presentation
Pamela Adams
 
Evaluation 1
tiatesfaye
 
Georgia ONmyLINE: Adult Learning Consortium Presentation
Georgia ONmyLINE
 
Question 4
Shan3009
 
Women in music videos
Shan3009
 
World Menus' Business Model Hypothesis
PMariz
 
Code for Nara 紹介
康司 石塚
 
TWC Group 1: Week One Questions
abonsall
 
2014 National Association of Women MBAs Presentation
PhoenixStrategicPerformance
 
Kawalan serangga organik minyak neem semambu
Halimah Mahmod
 
Unit3 l1
Samirah77
 
The Gateway Project: A Church in the Mall
jesusflock
 
Markus Larsen
Gilb3rt1
 
Ad

Similar to Pooja (20)

PDF
Array Data Structure for programing language
deepuranjankumar08
 
PDF
Arrays
ViniVini48
 
PPTX
Arrays presentation by Mam Iqra Kanwal.pptx
ibrahimkori
 
PPTX
ARRAYS.pptx
MamataAnilgod
 
PPTX
Arrays in Data Structure and Algorithm
KristinaBorooah
 
PPT
C++ Arrays
أحمد محمد
 
PPT
C++ Arrays
أحمد محمد
 
PPT
Arrays
swathi reddy
 
PDF
1-Intoduction ------------- Array in C++
ab6399671
 
DOCX
arrays.docx
lakshmanarao027MVGRC
 
PPTX
unit 2.pptx
researchgrad82
 
PPTX
"Understanding Arrays in Data Structures: A Beginners Guide."
saxenagarima2007
 
PPTX
Arrays & Strings
Munazza-Mah-Jabeen
 
PPT
arrayy.ppt
ssuserb82af5
 
PPTX
Array,string structures. Best presentation pptx
Kalkaye
 
PPTX
Arrays.pptx
NavyaParashir
 
PPTX
Array
AhsanCheema4
 
PPTX
Arrays in c v1 09102017
Tanmay Modi
 
PDF
Arraysincv109102017 180831194256
ABHAY9616302301
 
PPTX
Unit4pptx__2024_11_ 11_10_16_09.pptx
GImpact
 
Array Data Structure for programing language
deepuranjankumar08
 
Arrays
ViniVini48
 
Arrays presentation by Mam Iqra Kanwal.pptx
ibrahimkori
 
ARRAYS.pptx
MamataAnilgod
 
Arrays in Data Structure and Algorithm
KristinaBorooah
 
C++ Arrays
أحمد محمد
 
C++ Arrays
أحمد محمد
 
Arrays
swathi reddy
 
1-Intoduction ------------- Array in C++
ab6399671
 
unit 2.pptx
researchgrad82
 
"Understanding Arrays in Data Structures: A Beginners Guide."
saxenagarima2007
 
Arrays & Strings
Munazza-Mah-Jabeen
 
arrayy.ppt
ssuserb82af5
 
Array,string structures. Best presentation pptx
Kalkaye
 
Arrays.pptx
NavyaParashir
 
Arrays in c v1 09102017
Tanmay Modi
 
Arraysincv109102017 180831194256
ABHAY9616302301
 
Unit4pptx__2024_11_ 11_10_16_09.pptx
GImpact
 

More from Ravi Ramchandani (20)

PDF
PAN Card documents for public see it and
Ravi Ramchandani
 
PDF
Print _ Udyam Registration Certificate 1.pdf
Ravi Ramchandani
 
PPTX
Manipur
Ravi Ramchandani
 
PPTX
Campion school presentation
Ravi Ramchandani
 
PPTX
Amazon1
Ravi Ramchandani
 
PPTX
Tuk tuk
Ravi Ramchandani
 
PPTX
Antenatal care
Ravi Ramchandani
 
PPT
Binary number systems multiplication
Ravi Ramchandani
 
DOCX
Antibacterial activity of honey on pseudomonas species
Ravi Ramchandani
 
PDF
Gaura internship documentation
Ravi Ramchandani
 
PPTX
Enterpreneur (saniya)
Ravi Ramchandani
 
PPTX
Bank of baroda presentation
Ravi Ramchandani
 
PPT
Os introduction
Ravi Ramchandani
 
DOCX
Internship
Ravi Ramchandani
 
PDF
Final project reliance
Ravi Ramchandani
 
DOCX
Bba project
Ravi Ramchandani
 
PPTX
Goat farming
Ravi Ramchandani
 
PPT
Graph ppt
Ravi Ramchandani
 
PPT
Graph ppt
Ravi Ramchandani
 
PAN Card documents for public see it and
Ravi Ramchandani
 
Print _ Udyam Registration Certificate 1.pdf
Ravi Ramchandani
 
Campion school presentation
Ravi Ramchandani
 
Antenatal care
Ravi Ramchandani
 
Binary number systems multiplication
Ravi Ramchandani
 
Antibacterial activity of honey on pseudomonas species
Ravi Ramchandani
 
Gaura internship documentation
Ravi Ramchandani
 
Enterpreneur (saniya)
Ravi Ramchandani
 
Bank of baroda presentation
Ravi Ramchandani
 
Os introduction
Ravi Ramchandani
 
Internship
Ravi Ramchandani
 
Final project reliance
Ravi Ramchandani
 
Bba project
Ravi Ramchandani
 
Goat farming
Ravi Ramchandani
 
Graph ppt
Ravi Ramchandani
 
Graph ppt
Ravi Ramchandani
 

Recently uploaded (20)

PDF
Danielle Oliveira New Jersey - A Seasoned Lieutenant
Danielle Oliveira New Jersey
 
PPTX
Appreciations - July 25.pptxsdsdsddddddsssss
anushavnayak
 
PPTX
The Ultimate Guide to Customer Journey Mapping
RUPAL AGARWAL
 
DOCX
unit 1 BC.docx - INTRODUCTION TO BUSINESS COMMUICATION
MANJU N
 
PDF
William Trowell - A Construction Project Manager
William Trowell
 
PDF
India Cold Chain Storage And Logistics Market: From Farm Gate to Consumer – T...
Kumar Satyam
 
PDF
Tariff Surcharge and Price Increase Decision
Joshua Gao
 
PPTX
Final PPT on DAJGUA, EV Charging, Meter Devoloution, CGRF, Annual Accounts & ...
directord
 
PPTX
Social Media Marketing for Business Growth
vidhi622006
 
PDF
NewBase 24 July 2025 Energy News issue - 1805 by Khaled Al Awadi._compressed...
Khaled Al Awadi
 
PPTX
Presentation - Business Intelligence Solutions 007.pptx
FBSPL
 
PDF
A Complete Guide to Data Migration Services for Modern Businesses
Aurnex
 
PPTX
Certificate of Incorporation, Prospectus, Certificate of Commencement of Busi...
Keerthana Chinnathambi
 
DOCX
India's Emerging Global Leadership in Sustainable Energy Production The Rise ...
Insolation Energy
 
PDF
Data Sheet Cloud Integration Platform - dataZap
Chainsys SEO
 
PPTX
Chapter 3 Distributive Negotiation: Claiming Value
badranomar1990
 
PDF
askOdin - An Introduction to AI-Powered Investment Judgment
YekSoon LOK
 
PPTX
Financial Management for business management .pptx
Hasibullah Ahmadi
 
DOCX
UNIT 2 BC.docx- cv - RESOLUTION -MINUTES-NOTICE - BUSINESS LETTER DRAFTING
MANJU N
 
PPTX
E-Way Bill under GST – Transport & Logistics.pptx
Keerthana Chinnathambi
 
Danielle Oliveira New Jersey - A Seasoned Lieutenant
Danielle Oliveira New Jersey
 
Appreciations - July 25.pptxsdsdsddddddsssss
anushavnayak
 
The Ultimate Guide to Customer Journey Mapping
RUPAL AGARWAL
 
unit 1 BC.docx - INTRODUCTION TO BUSINESS COMMUICATION
MANJU N
 
William Trowell - A Construction Project Manager
William Trowell
 
India Cold Chain Storage And Logistics Market: From Farm Gate to Consumer – T...
Kumar Satyam
 
Tariff Surcharge and Price Increase Decision
Joshua Gao
 
Final PPT on DAJGUA, EV Charging, Meter Devoloution, CGRF, Annual Accounts & ...
directord
 
Social Media Marketing for Business Growth
vidhi622006
 
NewBase 24 July 2025 Energy News issue - 1805 by Khaled Al Awadi._compressed...
Khaled Al Awadi
 
Presentation - Business Intelligence Solutions 007.pptx
FBSPL
 
A Complete Guide to Data Migration Services for Modern Businesses
Aurnex
 
Certificate of Incorporation, Prospectus, Certificate of Commencement of Busi...
Keerthana Chinnathambi
 
India's Emerging Global Leadership in Sustainable Energy Production The Rise ...
Insolation Energy
 
Data Sheet Cloud Integration Platform - dataZap
Chainsys SEO
 
Chapter 3 Distributive Negotiation: Claiming Value
badranomar1990
 
askOdin - An Introduction to AI-Powered Investment Judgment
YekSoon LOK
 
Financial Management for business management .pptx
Hasibullah Ahmadi
 
UNIT 2 BC.docx- cv - RESOLUTION -MINUTES-NOTICE - BUSINESS LETTER DRAFTING
MANJU N
 
E-Way Bill under GST – Transport & Logistics.pptx
Keerthana Chinnathambi
 

Pooja

  • 2. NO. experiment SLIDE NO: 1 2 3 4 5 6 7 Introduction of array What is c++/Definition Introduction of array Array declaration Structure of array types Types of array Advantage of array 3 4 6 7 8 9-10 11
  • 3. •it was renamed to C++ in 1983. •It is pronounced "C-Plus-Plus.“( c was developed in the early 1970) • It is therefore possible to code C++ in a "C style" or "object-oriented style." •The c++ programming language was developed by bjarne stroustrup, also at AT & T Bell Labs.
  • 4. C++ is an object –oriented programming language. It is an extension of c with a major addition of the class construct features of simula67. The idea of c++comes from the increment operator ++ of c language there by suggesting that c++ is an augmented (incremented) version of c. What is C++? / Definitions
  • 6. INTRODUCTION OF ARRAY Arrays are the collection of homogeneous elements such that the elements are stored in consecutive memory location or we can say that the “Array is a collection of variables of the same type of data that are referred by a common name, These elements are referenced respectively by an index set consisting of ‘n’ consecutive numbers. An array stores a list of finite number (n) of homogeneous data elements(i.e. Data elements of the same type)the number(n) is called length or size or range of an array. when upper bound and lower bound of an array are given, its size is calculated follows- Array size (length)=UB –LB+1
  • 7. Array Declaration  Declaration is an important process for a variable so that the compiler will know what kind o variable, containing which type of value and of what size is required by the user. therefore, an array is also declared as other variable. Syntax of array declaration is as follows- Int - N [a]; Type of data Name of Variable Size of length
  • 8. TYPES OF ARRAYS 1-ONE-DIMENSIONAL ARRAYS 2-MULTI-DIMENSIONAL ARRAY TWO-DIMENSIONAL ARRAYS Tree dimensional arrays Comprised of finite homogeneous elements. Comprised of elements, each of which is itself an array.
  • 9. •Arrays can of following types: 1. One dimensional (1-D) arrays or Linear arrays 2. Multi dimensional arrays (a) Two dimensional (2-D) arrays or Matrix arrays (b) Three dimensional arrays 1. One dimensional (1-D) arrays or Linear arrays: In it each element is represented by a single subscript. The elements are stored in consecutive memory locations. • EXAMPLE- A [1], A [2], ….., A [N].
  • 10. 2. Multi dimensional arrays: (a) Two dimensional (2-D) arrays or Matrix arrays: In it each element is represented by two subscripts. Thus a two dimensional m x n array A has m rows and n columns and contains m*n elements. It is also called matrix array because in it the elements form a matrix. EXAMPLE- A [2] [3] has 2 rows and 3 columns and 2*3 = 6 elements. (b) Three dimensional arrays: In it each element is represented by three subscripts. Thus a three dimensional m x n x l array A contains m*n*l elements. EXAMPLE- A [2] [3] [2] has 2*3*2 = 12 elements.
  • 11. Advantages: OF ARRAY 1. It is used to represent multiple data items of same type by using only single name. 2. It can be used to implement other data structures like linked lists, stacks, queues, trees, graphs etc. 3. 2D arrays are used to represent matrices.