SlideShare a Scribd company logo
1 of 1
1. Array: An array is a series of elements of the same type placed in contiguous memory
locations that can be individually referenced by adding an index to a unique identifier. Very
much useful in a case where many elements of the same data type need to be stored and
processed. Element numbers in [] are called subscripts or indices. The subscripts designates
the position in array’s ordering.
2. Types of arrays:
a. Single Dimensional: It is the simplest form of array. The array is given a name and it
elements are referenced by the indices. Index numbering starts with 0. Array
definition specifies variable type, name with size.
b. Two dimensional arrays: Array in which each element itself is an array. An array A
[m] [n] is represented by MXN table with M rows and N columns. Simplest form of
multi-dimensional arrays.
3. Advantages: we can use only one variable for storing several variables but under different
indices. Very useful when we are using many variables of same data type.
4. Structure: Structure is a collection of variables under a common name. Variables can be of
any data type.
5. Difference between Structure and Class: In a structure, all members are public by default,
while the members of class are private by default.
6. Difference between Structure and Array: Only variables of one data type can be stored in
arrays but many data types can be stored in structures. In arrays, entries are called elements
while in Structures, they are called members.
7. Referencing structure elements: Members can be accessed through the dot operator. The
structure variable name followed by a period (.) and the element name references to that
individual structure element.
8. Typedef: C++ allows users to define new data type names by using the keyword typedef. It
defines a new name for an existing data type. This can increase portability of programs and
also aid in self documenting the code by allowing descriptive names for standard data types.
Also defines alias structure tag name. Syntax: typedef type name;
9. Preprocessor Directives: Preprocessor commands begin with a #. No blank space should
appear before the # and semicolon is not requires at the end. Things that can be done during
pre-processor phase
a. Inclusion of other files through #include directive.
b. Definition of symbolic constants and macros through #define directive.
10. #Define: Allows us to define symbolic names and constants. If #define PI 3.14, it will
translate every occurrence of PI into 3.14. It also allows you to make text substitutions
before compiling a program. An advanced use of it is creation of macros (#define SQUARE(x)
x*x)

More Related Content

What's hot

Data types in C language
Data types in C languageData types in C language
Data types in C language
kashyap399
 

What's hot (19)

Datatypes in c
Datatypes in cDatatypes in c
Datatypes in c
 
Union In language C
Union In language CUnion In language C
Union In language C
 
Structures in c language
Structures in c languageStructures in c language
Structures in c language
 
Data types in C language
Data types in C languageData types in C language
Data types in C language
 
Structure in c
Structure in cStructure in c
Structure in c
 
Data Types - Premetive and Non Premetive
Data Types - Premetive and Non Premetive Data Types - Premetive and Non Premetive
Data Types - Premetive and Non Premetive
 
Data types in C
Data types in CData types in C
Data types in C
 
C Structures & Unions
C Structures & UnionsC Structures & Unions
C Structures & Unions
 
Structure prespentation
Structure prespentation Structure prespentation
Structure prespentation
 
C programing -Structure
C programing -StructureC programing -Structure
C programing -Structure
 
struct and class deferences
 struct and class deferences struct and class deferences
struct and class deferences
 
Structure in C
Structure in CStructure in C
Structure in C
 
Unit 4
Unit 4Unit 4
Unit 4
 
Union in c language
Union  in c languageUnion  in c language
Union in c language
 
3rd june
3rd june3rd june
3rd june
 
data types in C programming
data types in C programmingdata types in C programming
data types in C programming
 
CPU : Structures And Unions
CPU : Structures And UnionsCPU : Structures And Unions
CPU : Structures And Unions
 
Primitive data types
Primitive data typesPrimitive data types
Primitive data types
 
Structure in C language
Structure in C languageStructure in C language
Structure in C language
 

Viewers also liked

change management
change managementchange management
change management
Ian Vaughan
 
Horwarth leveton boner
Horwarth leveton bonerHorwarth leveton boner
Horwarth leveton boner
fred fred
 
Windows Telnet Server for your mobile devices, RF Terminal data acquisiiton B...
Windows Telnet Server for your mobile devices, RF Terminal data acquisiiton B...Windows Telnet Server for your mobile devices, RF Terminal data acquisiiton B...
Windows Telnet Server for your mobile devices, RF Terminal data acquisiiton B...
topomax
 
Despacho nº 5048_b_2013_matriculas
Despacho nº 5048_b_2013_matriculasDespacho nº 5048_b_2013_matriculas
Despacho nº 5048_b_2013_matriculas
Julieta Lima
 
Telemoveis natal
Telemoveis natalTelemoveis natal
Telemoveis natal
aninhaaas
 
01-GSD-Verification-recommendation
01-GSD-Verification-recommendation01-GSD-Verification-recommendation
01-GSD-Verification-recommendation
Colin Mosher, AIA
 

Viewers also liked (20)

Threshold Launch Book 2012
Threshold Launch Book 2012Threshold Launch Book 2012
Threshold Launch Book 2012
 
change management
change managementchange management
change management
 
Horwarth leveton boner
Horwarth leveton bonerHorwarth leveton boner
Horwarth leveton boner
 
Windows Telnet Server for your mobile devices, RF Terminal data acquisiiton B...
Windows Telnet Server for your mobile devices, RF Terminal data acquisiiton B...Windows Telnet Server for your mobile devices, RF Terminal data acquisiiton B...
Windows Telnet Server for your mobile devices, RF Terminal data acquisiiton B...
 
Despacho nº 5048_b_2013_matriculas
Despacho nº 5048_b_2013_matriculasDespacho nº 5048_b_2013_matriculas
Despacho nº 5048_b_2013_matriculas
 
Calculo1 aula04
Calculo1 aula04Calculo1 aula04
Calculo1 aula04
 
Concord SAP 1 Slide
Concord SAP 1 SlideConcord SAP 1 Slide
Concord SAP 1 Slide
 
Telemoveis natal
Telemoveis natalTelemoveis natal
Telemoveis natal
 
Noves fora nada
Noves fora nadaNoves fora nada
Noves fora nada
 
Linked in 1
Linked in 1Linked in 1
Linked in 1
 
Deportes extremos
Deportes extremosDeportes extremos
Deportes extremos
 
ON:meedi:a Poster
ON:meedi:a PosterON:meedi:a Poster
ON:meedi:a Poster
 
EMA MA Lang Lit
EMA MA Lang LitEMA MA Lang Lit
EMA MA Lang Lit
 
Unidad 7 informe técnico
Unidad 7 informe técnicoUnidad 7 informe técnico
Unidad 7 informe técnico
 
01-GSD-Verification-recommendation
01-GSD-Verification-recommendation01-GSD-Verification-recommendation
01-GSD-Verification-recommendation
 
UC Proj Mgmt
UC Proj MgmtUC Proj Mgmt
UC Proj Mgmt
 
Práctica educativa innovadora
Práctica educativa innovadoraPráctica educativa innovadora
Práctica educativa innovadora
 
Proceso productivo (1)
Proceso productivo (1)Proceso productivo (1)
Proceso productivo (1)
 
catedra upecista
catedra upecistacatedra upecista
catedra upecista
 
Semiconductores
SemiconductoresSemiconductores
Semiconductores
 

Similar to Array_Class_11_CBSE_notes

Concept of c data types
Concept of c data typesConcept of c data types
Concept of c data types
Manisha Keim
 
Generics Collections
Generics CollectionsGenerics Collections
Generics Collections
phanleson
 
C programming session 04
C programming session 04C programming session 04
C programming session 04
Dushmanta Nath
 
C++ - UNIT_-_IV.pptx which contains details about Pointers
C++ - UNIT_-_IV.pptx which contains details about PointersC++ - UNIT_-_IV.pptx which contains details about Pointers
C++ - UNIT_-_IV.pptx which contains details about Pointers
ANUSUYA S
 

Similar to Array_Class_11_CBSE_notes (20)

Concept of c data types
Concept of c data typesConcept of c data types
Concept of c data types
 
DATA STRUCTURES - SHORT NOTES
DATA STRUCTURES - SHORT NOTESDATA STRUCTURES - SHORT NOTES
DATA STRUCTURES - SHORT NOTES
 
M v bramhananda reddy dsa complete notes
M v bramhananda reddy dsa complete notesM v bramhananda reddy dsa complete notes
M v bramhananda reddy dsa complete notes
 
Arrays
ArraysArrays
Arrays
 
Array
ArrayArray
Array
 
Unit 4 qba
Unit 4 qbaUnit 4 qba
Unit 4 qba
 
Objective c slide I
Objective c slide IObjective c slide I
Objective c slide I
 
Shanks
ShanksShanks
Shanks
 
java.pdf
java.pdfjava.pdf
java.pdf
 
Keywords, identifiers and data type of vb.net
Keywords, identifiers and data type of vb.netKeywords, identifiers and data type of vb.net
Keywords, identifiers and data type of vb.net
 
Data Structure & Algorithm.pptx
Data Structure & Algorithm.pptxData Structure & Algorithm.pptx
Data Structure & Algorithm.pptx
 
DATA TYPES IN C Language.pptx
DATA TYPES IN C Language.pptxDATA TYPES IN C Language.pptx
DATA TYPES IN C Language.pptx
 
Array
ArrayArray
Array
 
Structures in c language
Structures in c languageStructures in c language
Structures in c language
 
arrays.docx
arrays.docxarrays.docx
arrays.docx
 
Generics Collections
Generics CollectionsGenerics Collections
Generics Collections
 
Fundamental of C Programming (Data Types)
Fundamental of C Programming (Data Types)Fundamental of C Programming (Data Types)
Fundamental of C Programming (Data Types)
 
C programming session 04
C programming session 04C programming session 04
C programming session 04
 
Generics collections
Generics collectionsGenerics collections
Generics collections
 
C++ - UNIT_-_IV.pptx which contains details about Pointers
C++ - UNIT_-_IV.pptx which contains details about PointersC++ - UNIT_-_IV.pptx which contains details about Pointers
C++ - UNIT_-_IV.pptx which contains details about Pointers
 

Recently uploaded

The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
MateoGardella
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
MateoGardella
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
SanaAli374401
 

Recently uploaded (20)

Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 

Array_Class_11_CBSE_notes

  • 1. 1. Array: An array is a series of elements of the same type placed in contiguous memory locations that can be individually referenced by adding an index to a unique identifier. Very much useful in a case where many elements of the same data type need to be stored and processed. Element numbers in [] are called subscripts or indices. The subscripts designates the position in array’s ordering. 2. Types of arrays: a. Single Dimensional: It is the simplest form of array. The array is given a name and it elements are referenced by the indices. Index numbering starts with 0. Array definition specifies variable type, name with size. b. Two dimensional arrays: Array in which each element itself is an array. An array A [m] [n] is represented by MXN table with M rows and N columns. Simplest form of multi-dimensional arrays. 3. Advantages: we can use only one variable for storing several variables but under different indices. Very useful when we are using many variables of same data type. 4. Structure: Structure is a collection of variables under a common name. Variables can be of any data type. 5. Difference between Structure and Class: In a structure, all members are public by default, while the members of class are private by default. 6. Difference between Structure and Array: Only variables of one data type can be stored in arrays but many data types can be stored in structures. In arrays, entries are called elements while in Structures, they are called members. 7. Referencing structure elements: Members can be accessed through the dot operator. The structure variable name followed by a period (.) and the element name references to that individual structure element. 8. Typedef: C++ allows users to define new data type names by using the keyword typedef. It defines a new name for an existing data type. This can increase portability of programs and also aid in self documenting the code by allowing descriptive names for standard data types. Also defines alias structure tag name. Syntax: typedef type name; 9. Preprocessor Directives: Preprocessor commands begin with a #. No blank space should appear before the # and semicolon is not requires at the end. Things that can be done during pre-processor phase a. Inclusion of other files through #include directive. b. Definition of symbolic constants and macros through #define directive. 10. #Define: Allows us to define symbolic names and constants. If #define PI 3.14, it will translate every occurrence of PI into 3.14. It also allows you to make text substitutions before compiling a program. An advanced use of it is creation of macros (#define SQUARE(x) x*x)