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

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
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
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
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
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
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
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
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
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.pptxheathfieldcps1
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
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
 
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
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 

Recently uploaded (20)

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
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.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
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
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
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
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
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
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
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
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
 
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 ...
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
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
 
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"
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 

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)