SlideShare ist ein Scribd-Unternehmen logo
1 von 12
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
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

Weitere ähnliche Inhalte

Was ist angesagt? (18)

Matlab
MatlabMatlab
Matlab
 
Arrays Basics
Arrays BasicsArrays Basics
Arrays Basics
 
C++ arrays part1
C++ arrays part1C++ arrays part1
C++ arrays part1
 
Arrays In C
Arrays In CArrays In C
Arrays In C
 
Arrays in c
Arrays in cArrays in c
Arrays in c
 
Array in c++
Array in c++Array in c++
Array in c++
 
Java part 2
Java part  2Java part  2
Java part 2
 
Array in c
Array in cArray in c
Array in c
 
Array in c
Array in cArray in c
Array in c
 
Concepts of Arrays
Concepts of ArraysConcepts of Arrays
Concepts of Arrays
 
Introduction to Array ppt
Introduction to Array pptIntroduction to Array ppt
Introduction to Array ppt
 
Lecture 2a arrays
Lecture 2a arraysLecture 2a arrays
Lecture 2a arrays
 
Arrays In C Language
Arrays In C LanguageArrays In C Language
Arrays In C Language
 
Lec3
Lec3Lec3
Lec3
 
Array in c
Array in cArray in c
Array in c
 
Pointer to array and structure
Pointer to array and structurePointer to array and structure
Pointer to array and structure
 
Array
ArrayArray
Array
 
Arrays
ArraysArrays
Arrays
 

Andere mochten auch

A Multidimensional Distributed Array Abstraction for PGAS (HPCC'16)
A Multidimensional Distributed Array Abstraction for PGAS (HPCC'16)A Multidimensional Distributed Array Abstraction for PGAS (HPCC'16)
A Multidimensional Distributed Array Abstraction for PGAS (HPCC'16)Menlo Systems GmbH
 
Matrix transapose in c++
Matrix transapose in c++Matrix transapose in c++
Matrix transapose in c++imran khan
 
~ Project-student report-card.cpp[1]
~ Project-student report-card.cpp[1]~ Project-student report-card.cpp[1]
~ Project-student report-card.cpp[1]Sunny Rekhi
 
2. Linear Data Structure Using Arrays - Data Structures using C++ by Varsha P...
2. Linear Data Structure Using Arrays - Data Structures using C++ by Varsha P...2. Linear Data Structure Using Arrays - Data Structures using C++ by Varsha P...
2. Linear Data Structure Using Arrays - Data Structures using C++ by Varsha P...widespreadpromotion
 
1. Fundamental Concept - Data Structures using C++ by Varsha Patil
1. Fundamental Concept - Data Structures using C++ by Varsha Patil1. Fundamental Concept - Data Structures using C++ by Varsha Patil
1. Fundamental Concept - Data Structures using C++ by Varsha Patilwidespreadpromotion
 
C programming project by navin thapa
C programming project by navin thapaC programming project by navin thapa
C programming project by navin thapaNavinthp
 
Computer science project work
Computer science project workComputer science project work
Computer science project workrahulchamp2345
 

Andere mochten auch (9)

A Multidimensional Distributed Array Abstraction for PGAS (HPCC'16)
A Multidimensional Distributed Array Abstraction for PGAS (HPCC'16)A Multidimensional Distributed Array Abstraction for PGAS (HPCC'16)
A Multidimensional Distributed Array Abstraction for PGAS (HPCC'16)
 
Matrix transapose in c++
Matrix transapose in c++Matrix transapose in c++
Matrix transapose in c++
 
~ Project-student report-card.cpp[1]
~ Project-student report-card.cpp[1]~ Project-student report-card.cpp[1]
~ Project-student report-card.cpp[1]
 
2. Linear Data Structure Using Arrays - Data Structures using C++ by Varsha P...
2. Linear Data Structure Using Arrays - Data Structures using C++ by Varsha P...2. Linear Data Structure Using Arrays - Data Structures using C++ by Varsha P...
2. Linear Data Structure Using Arrays - Data Structures using C++ by Varsha P...
 
Students report card for C++ project..
Students report card for C++ project..Students report card for C++ project..
Students report card for C++ project..
 
1. Fundamental Concept - Data Structures using C++ by Varsha Patil
1. Fundamental Concept - Data Structures using C++ by Varsha Patil1. Fundamental Concept - Data Structures using C++ by Varsha Patil
1. Fundamental Concept - Data Structures using C++ by Varsha Patil
 
C programming project by navin thapa
C programming project by navin thapaC programming project by navin thapa
C programming project by navin thapa
 
Project report
Project reportProject report
Project report
 
Computer science project work
Computer science project workComputer science project work
Computer science project work
 

Ähnlich wie Pooja

arrays-130116232821-phpapp02.pdf
arrays-130116232821-phpapp02.pdfarrays-130116232821-phpapp02.pdf
arrays-130116232821-phpapp02.pdfMarlonMagtibay2
 
(2) collections algorithms
(2) collections algorithms(2) collections algorithms
(2) collections algorithmsNico Ludwig
 
Preparation Data Structures 06 arrays representation
Preparation Data Structures 06 arrays representationPreparation Data Structures 06 arrays representation
Preparation Data Structures 06 arrays representationAndres Mendez-Vazquez
 
C programming session 04
C programming session 04C programming session 04
C programming session 04Dushmanta Nath
 
Chapter 4 (Part I) - Array and Strings.pdf
Chapter 4 (Part I) - Array and Strings.pdfChapter 4 (Part I) - Array and Strings.pdf
Chapter 4 (Part I) - Array and Strings.pdfKirubelWondwoson1
 
Arrays accessing using for loops
Arrays accessing using for loopsArrays accessing using for loops
Arrays accessing using for loopssangrampatil81
 
(2) collections algorithms
(2) collections algorithms(2) collections algorithms
(2) collections algorithmsNico Ludwig
 
Arrays and library functions
Arrays and library functionsArrays and library functions
Arrays and library functionsSwarup Kumar Boro
 
Homework Assignment – Array Technical DocumentWrite a technical .pdf
Homework Assignment – Array Technical DocumentWrite a technical .pdfHomework Assignment – Array Technical DocumentWrite a technical .pdf
Homework Assignment – Array Technical DocumentWrite a technical .pdfaroraopticals15
 
Learn C# Programming - Nullables & Arrays
Learn C# Programming - Nullables & ArraysLearn C# Programming - Nullables & Arrays
Learn C# Programming - Nullables & ArraysEng Teong Cheah
 
Arrays in C++ in Tamil - TNSCERT SYLLABUS PPT
Arrays in C++ in Tamil - TNSCERT SYLLABUS PPT Arrays in C++ in Tamil - TNSCERT SYLLABUS PPT
Arrays in C++ in Tamil - TNSCERT SYLLABUS PPT LATHA LAKSHMI
 
Arrays in Data Structure and Algorithm
Arrays in Data Structure and Algorithm Arrays in Data Structure and Algorithm
Arrays in Data Structure and Algorithm KristinaBorooah
 
Array 2 hina
Array 2 hina Array 2 hina
Array 2 hina heena94
 

Ähnlich wie Pooja (20)

arrays-130116232821-phpapp02.pdf
arrays-130116232821-phpapp02.pdfarrays-130116232821-phpapp02.pdf
arrays-130116232821-phpapp02.pdf
 
arrays.docx
arrays.docxarrays.docx
arrays.docx
 
Arrays
ArraysArrays
Arrays
 
(2) collections algorithms
(2) collections algorithms(2) collections algorithms
(2) collections algorithms
 
Preparation Data Structures 06 arrays representation
Preparation Data Structures 06 arrays representationPreparation Data Structures 06 arrays representation
Preparation Data Structures 06 arrays representation
 
Arrays
ArraysArrays
Arrays
 
C programming session 04
C programming session 04C programming session 04
C programming session 04
 
Chapter 4 (Part I) - Array and Strings.pdf
Chapter 4 (Part I) - Array and Strings.pdfChapter 4 (Part I) - Array and Strings.pdf
Chapter 4 (Part I) - Array and Strings.pdf
 
Arrays accessing using for loops
Arrays accessing using for loopsArrays accessing using for loops
Arrays accessing using for loops
 
(2) collections algorithms
(2) collections algorithms(2) collections algorithms
(2) collections algorithms
 
ARRAYS.pptx
ARRAYS.pptxARRAYS.pptx
ARRAYS.pptx
 
Arrays and library functions
Arrays and library functionsArrays and library functions
Arrays and library functions
 
Arrays
ArraysArrays
Arrays
 
Homework Assignment – Array Technical DocumentWrite a technical .pdf
Homework Assignment – Array Technical DocumentWrite a technical .pdfHomework Assignment – Array Technical DocumentWrite a technical .pdf
Homework Assignment – Array Technical DocumentWrite a technical .pdf
 
Arrays
ArraysArrays
Arrays
 
Learn C# Programming - Nullables & Arrays
Learn C# Programming - Nullables & ArraysLearn C# Programming - Nullables & Arrays
Learn C# Programming - Nullables & Arrays
 
Arrays in C++ in Tamil - TNSCERT SYLLABUS PPT
Arrays in C++ in Tamil - TNSCERT SYLLABUS PPT Arrays in C++ in Tamil - TNSCERT SYLLABUS PPT
Arrays in C++ in Tamil - TNSCERT SYLLABUS PPT
 
C++ lecture 04
C++ lecture 04C++ lecture 04
C++ lecture 04
 
Arrays in Data Structure and Algorithm
Arrays in Data Structure and Algorithm Arrays in Data Structure and Algorithm
Arrays in Data Structure and Algorithm
 
Array 2 hina
Array 2 hina Array 2 hina
Array 2 hina
 

Mehr von Ravi Ramchandani (20)

Manipur
ManipurManipur
Manipur
 
Campion school presentation
Campion school presentationCampion school presentation
Campion school presentation
 
Amazon1
Amazon1Amazon1
Amazon1
 
Tuk tuk
Tuk tukTuk tuk
Tuk tuk
 
Antenatal care
Antenatal careAntenatal care
Antenatal care
 
Binary number systems multiplication
Binary number systems multiplicationBinary number systems multiplication
Binary number systems multiplication
 
Antibacterial activity of honey on pseudomonas species
Antibacterial activity of honey on pseudomonas speciesAntibacterial activity of honey on pseudomonas species
Antibacterial activity of honey on pseudomonas species
 
Gaura internship documentation
Gaura internship documentationGaura internship documentation
Gaura internship documentation
 
Enterpreneur (saniya)
Enterpreneur (saniya)Enterpreneur (saniya)
Enterpreneur (saniya)
 
Bank of baroda presentation
Bank of baroda presentationBank of baroda presentation
Bank of baroda presentation
 
Final
FinalFinal
Final
 
Os introduction
Os introductionOs introduction
Os introduction
 
Internship
InternshipInternship
Internship
 
Final project reliance
Final project relianceFinal project reliance
Final project reliance
 
Bba project
Bba projectBba project
Bba project
 
Goat farming
Goat farmingGoat farming
Goat farming
 
Graph ppt
Graph pptGraph ppt
Graph ppt
 
Graph ppt
Graph pptGraph ppt
Graph ppt
 
Final report on sgi social networking
Final report on sgi social networkingFinal report on sgi social networking
Final report on sgi social networking
 
Good and bad microorganisms
Good and bad microorganismsGood and bad microorganisms
Good and bad microorganisms
 

Kürzlich hochgeladen

Gurgaon Call Girls: Free Delivery 24x7 at Your Doorstep G.G.N = 8377087607
Gurgaon Call Girls: Free Delivery 24x7 at Your Doorstep G.G.N = 8377087607Gurgaon Call Girls: Free Delivery 24x7 at Your Doorstep G.G.N = 8377087607
Gurgaon Call Girls: Free Delivery 24x7 at Your Doorstep G.G.N = 8377087607dollysharma2066
 
Escort Service Andheri WhatsApp:+91-9833363713
Escort Service Andheri WhatsApp:+91-9833363713Escort Service Andheri WhatsApp:+91-9833363713
Escort Service Andheri WhatsApp:+91-9833363713Riya Pathan
 
办理哈珀亚当斯大学学院毕业证书文凭学位证书
办理哈珀亚当斯大学学院毕业证书文凭学位证书办理哈珀亚当斯大学学院毕业证书文凭学位证书
办理哈珀亚当斯大学学院毕业证书文凭学位证书saphesg8
 
LinkedIn Strategic Guidelines April 2024
LinkedIn Strategic Guidelines April 2024LinkedIn Strategic Guidelines April 2024
LinkedIn Strategic Guidelines April 2024Bruce Bennett
 
定制(NYIT毕业证书)美国纽约理工学院毕业证成绩单原版一比一
定制(NYIT毕业证书)美国纽约理工学院毕业证成绩单原版一比一定制(NYIT毕业证书)美国纽约理工学院毕业证成绩单原版一比一
定制(NYIT毕业证书)美国纽约理工学院毕业证成绩单原版一比一2s3dgmej
 
定制(UQ毕业证书)澳洲昆士兰大学毕业证成绩单原版一比一
定制(UQ毕业证书)澳洲昆士兰大学毕业证成绩单原版一比一定制(UQ毕业证书)澳洲昆士兰大学毕业证成绩单原版一比一
定制(UQ毕业证书)澳洲昆士兰大学毕业证成绩单原版一比一lvtagr7
 
定制英国克兰菲尔德大学毕业证成绩单原版一比一
定制英国克兰菲尔德大学毕业证成绩单原版一比一定制英国克兰菲尔德大学毕业证成绩单原版一比一
定制英国克兰菲尔德大学毕业证成绩单原版一比一z zzz
 
格里菲斯大学毕业证(Griffith毕业证)#文凭成绩单#真实留信学历认证永久存档
格里菲斯大学毕业证(Griffith毕业证)#文凭成绩单#真实留信学历认证永久存档格里菲斯大学毕业证(Griffith毕业证)#文凭成绩单#真实留信学历认证永久存档
格里菲斯大学毕业证(Griffith毕业证)#文凭成绩单#真实留信学历认证永久存档208367051
 
Application deck- Cyril Caudroy-2024.pdf
Application deck- Cyril Caudroy-2024.pdfApplication deck- Cyril Caudroy-2024.pdf
Application deck- Cyril Caudroy-2024.pdfCyril CAUDROY
 
ME 205- Chapter 6 - Pure Bending of Beams.pdf
ME 205- Chapter 6 - Pure Bending of Beams.pdfME 205- Chapter 6 - Pure Bending of Beams.pdf
ME 205- Chapter 6 - Pure Bending of Beams.pdfaae4149584
 
美国SU学位证,雪城大学毕业证书1:1制作
美国SU学位证,雪城大学毕业证书1:1制作美国SU学位证,雪城大学毕业证书1:1制作
美国SU学位证,雪城大学毕业证书1:1制作ss846v0c
 
办理学位证(UoM证书)北安普顿大学毕业证成绩单原版一比一
办理学位证(UoM证书)北安普顿大学毕业证成绩单原版一比一办理学位证(UoM证书)北安普顿大学毕业证成绩单原版一比一
办理学位证(UoM证书)北安普顿大学毕业证成绩单原版一比一A SSS
 
Protection of Children in context of IHL and Counter Terrorism
Protection of Children in context of IHL and  Counter TerrorismProtection of Children in context of IHL and  Counter Terrorism
Protection of Children in context of IHL and Counter TerrorismNilendra Kumar
 
Most Inspirational Leaders Empowering the Educational Sector, 2024.pdf
Most Inspirational Leaders Empowering the Educational Sector, 2024.pdfMost Inspirational Leaders Empowering the Educational Sector, 2024.pdf
Most Inspirational Leaders Empowering the Educational Sector, 2024.pdfTheKnowledgeReview2
 
定制(ECU毕业证书)埃迪斯科文大学毕业证毕业证成绩单原版一比一
定制(ECU毕业证书)埃迪斯科文大学毕业证毕业证成绩单原版一比一定制(ECU毕业证书)埃迪斯科文大学毕业证毕业证成绩单原版一比一
定制(ECU毕业证书)埃迪斯科文大学毕业证毕业证成绩单原版一比一fjjwgk
 
原版快速办理MQU毕业证麦考瑞大学毕业证成绩单留信学历认证
原版快速办理MQU毕业证麦考瑞大学毕业证成绩单留信学历认证原版快速办理MQU毕业证麦考瑞大学毕业证成绩单留信学历认证
原版快速办理MQU毕业证麦考瑞大学毕业证成绩单留信学历认证nhjeo1gg
 
Issues in the Philippines (Unemployment and Underemployment).pptx
Issues in the Philippines (Unemployment and Underemployment).pptxIssues in the Philippines (Unemployment and Underemployment).pptx
Issues in the Philippines (Unemployment and Underemployment).pptxJenniferPeraro1
 
Digital Marketing Training Institute in Mohali, India
Digital Marketing Training Institute in Mohali, IndiaDigital Marketing Training Institute in Mohali, India
Digital Marketing Training Institute in Mohali, IndiaDigital Discovery Institute
 

Kürzlich hochgeladen (20)

Gurgaon Call Girls: Free Delivery 24x7 at Your Doorstep G.G.N = 8377087607
Gurgaon Call Girls: Free Delivery 24x7 at Your Doorstep G.G.N = 8377087607Gurgaon Call Girls: Free Delivery 24x7 at Your Doorstep G.G.N = 8377087607
Gurgaon Call Girls: Free Delivery 24x7 at Your Doorstep G.G.N = 8377087607
 
Escort Service Andheri WhatsApp:+91-9833363713
Escort Service Andheri WhatsApp:+91-9833363713Escort Service Andheri WhatsApp:+91-9833363713
Escort Service Andheri WhatsApp:+91-9833363713
 
办理哈珀亚当斯大学学院毕业证书文凭学位证书
办理哈珀亚当斯大学学院毕业证书文凭学位证书办理哈珀亚当斯大学学院毕业证书文凭学位证书
办理哈珀亚当斯大学学院毕业证书文凭学位证书
 
LinkedIn Strategic Guidelines April 2024
LinkedIn Strategic Guidelines April 2024LinkedIn Strategic Guidelines April 2024
LinkedIn Strategic Guidelines April 2024
 
Students with Oppositional Defiant Disorder
Students with Oppositional Defiant DisorderStudents with Oppositional Defiant Disorder
Students with Oppositional Defiant Disorder
 
定制(NYIT毕业证书)美国纽约理工学院毕业证成绩单原版一比一
定制(NYIT毕业证书)美国纽约理工学院毕业证成绩单原版一比一定制(NYIT毕业证书)美国纽约理工学院毕业证成绩单原版一比一
定制(NYIT毕业证书)美国纽约理工学院毕业证成绩单原版一比一
 
Young Call~Girl in Pragati Maidan New Delhi 8448380779 Full Enjoy Escort Service
Young Call~Girl in Pragati Maidan New Delhi 8448380779 Full Enjoy Escort ServiceYoung Call~Girl in Pragati Maidan New Delhi 8448380779 Full Enjoy Escort Service
Young Call~Girl in Pragati Maidan New Delhi 8448380779 Full Enjoy Escort Service
 
定制(UQ毕业证书)澳洲昆士兰大学毕业证成绩单原版一比一
定制(UQ毕业证书)澳洲昆士兰大学毕业证成绩单原版一比一定制(UQ毕业证书)澳洲昆士兰大学毕业证成绩单原版一比一
定制(UQ毕业证书)澳洲昆士兰大学毕业证成绩单原版一比一
 
定制英国克兰菲尔德大学毕业证成绩单原版一比一
定制英国克兰菲尔德大学毕业证成绩单原版一比一定制英国克兰菲尔德大学毕业证成绩单原版一比一
定制英国克兰菲尔德大学毕业证成绩单原版一比一
 
格里菲斯大学毕业证(Griffith毕业证)#文凭成绩单#真实留信学历认证永久存档
格里菲斯大学毕业证(Griffith毕业证)#文凭成绩单#真实留信学历认证永久存档格里菲斯大学毕业证(Griffith毕业证)#文凭成绩单#真实留信学历认证永久存档
格里菲斯大学毕业证(Griffith毕业证)#文凭成绩单#真实留信学历认证永久存档
 
Application deck- Cyril Caudroy-2024.pdf
Application deck- Cyril Caudroy-2024.pdfApplication deck- Cyril Caudroy-2024.pdf
Application deck- Cyril Caudroy-2024.pdf
 
ME 205- Chapter 6 - Pure Bending of Beams.pdf
ME 205- Chapter 6 - Pure Bending of Beams.pdfME 205- Chapter 6 - Pure Bending of Beams.pdf
ME 205- Chapter 6 - Pure Bending of Beams.pdf
 
美国SU学位证,雪城大学毕业证书1:1制作
美国SU学位证,雪城大学毕业证书1:1制作美国SU学位证,雪城大学毕业证书1:1制作
美国SU学位证,雪城大学毕业证书1:1制作
 
办理学位证(UoM证书)北安普顿大学毕业证成绩单原版一比一
办理学位证(UoM证书)北安普顿大学毕业证成绩单原版一比一办理学位证(UoM证书)北安普顿大学毕业证成绩单原版一比一
办理学位证(UoM证书)北安普顿大学毕业证成绩单原版一比一
 
Protection of Children in context of IHL and Counter Terrorism
Protection of Children in context of IHL and  Counter TerrorismProtection of Children in context of IHL and  Counter Terrorism
Protection of Children in context of IHL and Counter Terrorism
 
Most Inspirational Leaders Empowering the Educational Sector, 2024.pdf
Most Inspirational Leaders Empowering the Educational Sector, 2024.pdfMost Inspirational Leaders Empowering the Educational Sector, 2024.pdf
Most Inspirational Leaders Empowering the Educational Sector, 2024.pdf
 
定制(ECU毕业证书)埃迪斯科文大学毕业证毕业证成绩单原版一比一
定制(ECU毕业证书)埃迪斯科文大学毕业证毕业证成绩单原版一比一定制(ECU毕业证书)埃迪斯科文大学毕业证毕业证成绩单原版一比一
定制(ECU毕业证书)埃迪斯科文大学毕业证毕业证成绩单原版一比一
 
原版快速办理MQU毕业证麦考瑞大学毕业证成绩单留信学历认证
原版快速办理MQU毕业证麦考瑞大学毕业证成绩单留信学历认证原版快速办理MQU毕业证麦考瑞大学毕业证成绩单留信学历认证
原版快速办理MQU毕业证麦考瑞大学毕业证成绩单留信学历认证
 
Issues in the Philippines (Unemployment and Underemployment).pptx
Issues in the Philippines (Unemployment and Underemployment).pptxIssues in the Philippines (Unemployment and Underemployment).pptx
Issues in the Philippines (Unemployment and Underemployment).pptx
 
Digital Marketing Training Institute in Mohali, India
Digital Marketing Training Institute in Mohali, IndiaDigital Marketing Training Institute in Mohali, India
Digital Marketing Training Institute in Mohali, India
 

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
  • 5.
  • 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.