SlideShare a Scribd company logo
NAME :- ABHINAY PRATAP
DIV :- D
ROLL NO. :- 17
BRANCH :- COMPUTER SCIENCE AND
ENGINEERING
INSTRUCTED BY Kusum Rao
Email:-abhinay.pratap.2000@gmail.com
Insta:- bhojpur_babu
Snap:-officialpratap
 An array is a fixed-size sequential collection
of elements of same data types that share
a common name.
• It is simply a group of data types.
• An array is a derived data type.
• An array is used to represent a list of
numbers, or a list of names.
EXAMPLESOF ARRAYS:-
• List of employees in an organization.
• Test scores of a class of students.
• List of students in the college.
 For example, to represent 100
students in college, can be written as
Student [100]
Here students is a array name and [100]
is called index or subscript.
1. One-dimensional
Arrays
2. Two-dimensional
Arrays
3. Multi-dimensional
Arrays
 A variable which represent the list of items
using only one index (subscript) is called
one-dimensional array.
• For example, if we want to represent a set of
five numbers says ( 20,25,30,35,40) by an
array variable number, then number is
declared as follows,
Int number [5]
• The computer store these number as :
Number[0]
Number[1]
Number[2]
Number[3]
Number[4]
• The values can be assigned to the array as :
Number[20]
Number[25]
Number[30]
Number[35]
Number[40]
 A variable which represent the
list of items using two index
(subscript) is called two-
dimensional array.
• In two-dimensional arrays, the
data is stored in rows and columns
format.
• The general form of two-
dimensional array ;
Array-name [row_size][column_size]
 Example :- int table[2][3]=
{0,0,0,1,1,1};
Here the element of first row
initializes to zero and the elements of
second row initializes to one.
• This above statement can be
written as :
Int table[2][3] = [{0,0,0},{1,1,1}]
 A variable which represent the
list of items using more than
two index (subscript) is called
multi-dimensional array.
• The general form of multi
dimensional array is:
type array-name[𝒔 𝟏][𝒔 𝟐][𝒔 𝟑]……[𝒔 𝒏]
• Where S is the size; for ex-
Int survey[3][5][6]
Float table[5][4][5][3]
• Here survey is a three-
dimensional array and table is a
four-dimensional array.
• Using pointers for accessing arrays.
• Passing arrays as function
parameters.
• Arrays as members of structures.
• Using structure types data as array
elements.
• Arrays as dynamic data structures.
• Manipulating character arrays and
strings.
Email:-abhinay.pratap.2000@gmail.com
Insta:- bhojpur_babu
Snap:-officialpratap

More Related Content

PPT
Data Structures- Part5 recursion
PPTX
Binary search
PDF
BCA DATA STRUCTURES LINEAR ARRAYS MRS.SOWMYA JYOTHI
PPTX
Introduction to Object Oriented Programming
PDF
Chapter 02: Classes Objects and Methods Java by Tushar B Kute
PPTX
Object Oriented Programming using C++(UNIT 1)
PDF
Constructors and Destructors
PPTX
Procedural vs. object oriented programming
Data Structures- Part5 recursion
Binary search
BCA DATA STRUCTURES LINEAR ARRAYS MRS.SOWMYA JYOTHI
Introduction to Object Oriented Programming
Chapter 02: Classes Objects and Methods Java by Tushar B Kute
Object Oriented Programming using C++(UNIT 1)
Constructors and Destructors
Procedural vs. object oriented programming

What's hot (20)

PPTX
stack & queue
PDF
Object-oriented Programming-with C#
PPTX
css.ppt
PDF
Object oriented programming c++
PPTX
File system Os
PPTX
Searching and sorting
PPTX
PDF
UNIT I LINEAR DATA STRUCTURES – LIST
PPTX
Data types in c++
PPT
C++ Arrays
PPTX
Arrays in Data Structure and Algorithm
PPTX
linked list in data structure
PPTX
Arrays In C++
PPTX
Data Structures in Python
PPTX
Data Type in C Programming
PPTX
Extensible Markup Language (XML)
PPTX
data types in C programming
PPTX
Bubble sort | Data structure |
PPSX
Break and continue
stack & queue
Object-oriented Programming-with C#
css.ppt
Object oriented programming c++
File system Os
Searching and sorting
UNIT I LINEAR DATA STRUCTURES – LIST
Data types in c++
C++ Arrays
Arrays in Data Structure and Algorithm
linked list in data structure
Arrays In C++
Data Structures in Python
Data Type in C Programming
Extensible Markup Language (XML)
data types in C programming
Bubble sort | Data structure |
Break and continue
Ad

Similar to Ppt on arrays in c (20)

PPT
Array in c
PPTX
lec 2- array declaration and initialization.pptx
PPTX
Arrays in c
PPT
uderstanding arrays and how to declare arrays
PPTX
array-160309152651.pptx
PPTX
concept of Array, 1D & 2D array
PPTX
Array
PPTX
BHARGAVIARRAY.PPT.pptx
PPTX
Unit 6. Arrays
PPTX
Arrays in c
PPTX
Array
PPTX
data structure unit -1_170434dd7400.pptx
PPT
Two Dimensional Array
PPT
Arrays and vectors in Data Structure.ppt
PPTX
Python lists
PPTX
Arrays_and_Strings_in_C_Programming.pptx
PPTX
Unit4pptx__2024_11_ 11_10_16_09.pptx
PPTX
ARRAY PPT.pptx for mca finals placement
PPTX
PPTX
Presentation on array
Array in c
lec 2- array declaration and initialization.pptx
Arrays in c
uderstanding arrays and how to declare arrays
array-160309152651.pptx
concept of Array, 1D & 2D array
Array
BHARGAVIARRAY.PPT.pptx
Unit 6. Arrays
Arrays in c
Array
data structure unit -1_170434dd7400.pptx
Two Dimensional Array
Arrays and vectors in Data Structure.ppt
Python lists
Arrays_and_Strings_in_C_Programming.pptx
Unit4pptx__2024_11_ 11_10_16_09.pptx
ARRAY PPT.pptx for mca finals placement
Presentation on array
Ad

Recently uploaded (20)

PPTX
Introduction to machine learning and Linear Models
PDF
Lecture1 pattern recognition............
PDF
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
PPTX
IB Computer Science - Internal Assessment.pptx
PPTX
Supervised vs unsupervised machine learning algorithms
PPTX
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
PDF
BF and FI - Blockchain, fintech and Financial Innovation Lesson 2.pdf
PPTX
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
PPTX
Business Ppt On Nestle.pptx huunnnhhgfvu
PDF
Fluorescence-microscope_Botany_detailed content
PPTX
Business Acumen Training GuidePresentation.pptx
PPTX
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
PPTX
climate analysis of Dhaka ,Banglades.pptx
PDF
Mega Projects Data Mega Projects Data
PPT
Miokarditis (Inflamasi pada Otot Jantung)
PDF
Foundation of Data Science unit number two notes
PPT
Reliability_Chapter_ presentation 1221.5784
PPTX
oil_refinery_comprehensive_20250804084928 (1).pptx
PPTX
IBA_Chapter_11_Slides_Final_Accessible.pptx
Introduction to machine learning and Linear Models
Lecture1 pattern recognition............
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
IB Computer Science - Internal Assessment.pptx
Supervised vs unsupervised machine learning algorithms
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
BF and FI - Blockchain, fintech and Financial Innovation Lesson 2.pdf
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
Business Ppt On Nestle.pptx huunnnhhgfvu
Fluorescence-microscope_Botany_detailed content
Business Acumen Training GuidePresentation.pptx
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
climate analysis of Dhaka ,Banglades.pptx
Mega Projects Data Mega Projects Data
Miokarditis (Inflamasi pada Otot Jantung)
Foundation of Data Science unit number two notes
Reliability_Chapter_ presentation 1221.5784
oil_refinery_comprehensive_20250804084928 (1).pptx
IBA_Chapter_11_Slides_Final_Accessible.pptx

Ppt on arrays in c

  • 1. NAME :- ABHINAY PRATAP DIV :- D ROLL NO. :- 17 BRANCH :- COMPUTER SCIENCE AND ENGINEERING INSTRUCTED BY Kusum Rao Email:-abhinay.pratap.2000@gmail.com Insta:- bhojpur_babu Snap:-officialpratap
  • 2.  An array is a fixed-size sequential collection of elements of same data types that share a common name. • It is simply a group of data types. • An array is a derived data type. • An array is used to represent a list of numbers, or a list of names. EXAMPLESOF ARRAYS:- • List of employees in an organization. • Test scores of a class of students. • List of students in the college.  For example, to represent 100 students in college, can be written as Student [100] Here students is a array name and [100] is called index or subscript.
  • 4.  A variable which represent the list of items using only one index (subscript) is called one-dimensional array. • For example, if we want to represent a set of five numbers says ( 20,25,30,35,40) by an array variable number, then number is declared as follows, Int number [5] • The computer store these number as : Number[0] Number[1] Number[2] Number[3] Number[4] • The values can be assigned to the array as : Number[20] Number[25] Number[30] Number[35] Number[40]
  • 5.  A variable which represent the list of items using two index (subscript) is called two- dimensional array. • In two-dimensional arrays, the data is stored in rows and columns format. • The general form of two- dimensional array ; Array-name [row_size][column_size]  Example :- int table[2][3]= {0,0,0,1,1,1}; Here the element of first row initializes to zero and the elements of second row initializes to one. • This above statement can be written as : Int table[2][3] = [{0,0,0},{1,1,1}]
  • 6.  A variable which represent the list of items using more than two index (subscript) is called multi-dimensional array. • The general form of multi dimensional array is: type array-name[𝒔 𝟏][𝒔 𝟐][𝒔 𝟑]……[𝒔 𝒏] • Where S is the size; for ex- Int survey[3][5][6] Float table[5][4][5][3] • Here survey is a three- dimensional array and table is a four-dimensional array.
  • 7. • Using pointers for accessing arrays. • Passing arrays as function parameters. • Arrays as members of structures. • Using structure types data as array elements. • Arrays as dynamic data structures. • Manipulating character arrays and strings.