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 (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 (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 typesManisha Keim
 
DATA STRUCTURES - SHORT NOTES
DATA STRUCTURES - SHORT NOTESDATA STRUCTURES - SHORT NOTES
DATA STRUCTURES - SHORT NOTESsuthi
 
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.netJaya Kumari
 
Data Structure & Algorithm.pptx
Data Structure & Algorithm.pptxData Structure & Algorithm.pptx
Data Structure & Algorithm.pptxMumtaz
 
DATA TYPES IN C Language.pptx
DATA TYPES IN C Language.pptxDATA TYPES IN C Language.pptx
DATA TYPES IN C Language.pptxkaransethi63
 
Structures in c language
Structures in c languageStructures in c language
Structures in c languageTanmay Modi
 
Generics Collections
Generics CollectionsGenerics Collections
Generics Collectionsphanleson
 
Fundamental of C Programming (Data Types)
Fundamental of C Programming (Data Types)Fundamental of C Programming (Data Types)
Fundamental of C Programming (Data Types)jimmy majumder
 
C programming session 04
C programming session 04C programming session 04
C programming session 04Dushmanta 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 PointersANUSUYA 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

Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
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 17Celine George
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
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.pdfAdmir Softic
 
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.pdfSanaAli374401
 
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 Delhikauryashika82
 
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 ClassesCeline George
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfChris Hunter
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.MateoGardella
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 

Recently uploaded (20)

Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
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
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
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
 
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
 
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
 
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
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 

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)