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

The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxShobhayan Kirtania
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
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 . pdfQucHHunhnh
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 

Recently uploaded (20)

The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptx
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.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
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
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
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 

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)