SlideShare a Scribd company logo
ARRAYS IN C
(1-Dimensional & 2-Dimensional)
By:
Anish Kumar
12/CS/60
Haldia Institute Of Technology
Introduction1-D2-DApplicationsOperations
LimitationsConclusionBibliography
Introduction
Array is a derived data type that represents a collection of the
similar types of data with continuous memory locations with
fixed size sequence.
Roles
 Efficient storing of large volume of data
 Efficient access and manipulation of data
 Helpful in viewing complex problem in simpler way
 Single name for multiple data
 Structured Data Type
Array in c
1-Dimensional Array
Data_type var_name[Expression]
Data Type is the type of elements to be stored in the array
Var_name is the name of the array like any
Other variables
Expression specifies the number of elements to be stored
In array
Example : int num[10];
char city[9]= “HALDIA”;
char city[9]={ ‘H’,’A’,’L’,’D’,’I’,’A’}
Num[0] =data1
Num[1] =data2
Num[2] =data3
Num[3] =data4
Num[4] =data5
Num[5] =data6
Num[6] =data7
Num[7] =data8
Num[8] =data9
Num[9] =data10
2-DIMENSIONAL ARRAY
0 1 2 3 4
0
1
2
3
4
0 1 2 3 4
0
1
2 7
3
4
int matrix[5] [5]; matrix[2] [1] =
7
0 1 2
0 1 2 3
1 4 5 6
2 7 8 9
3 10 11 12
int array [4][5];
or
Int [][] array ={ {1, 2, 3}, {4, 5, 6}, {7, 8, 9}, {10, 11, 12} };
Applications
 Matrix Problem
 Solving different algorithms, graph & tree problem
 Sparse Matrix
 Storing and searching of large amount of data
 Stack, Queue
 Array of pointers, Dynamic Arrays
OPERATIONS IN ARRAY
INSERTION
DELETION
MERGING TWO ARRAYS
TRAVERSING
SORTING
SEARCHING
Limitations
 Wastage of memory space. We cannot change size of
array at the run time.
 It can store only similar type of data.
 Sometimes it is not easy to operate with many index
arrays.
Conclusion
Array has added a new flavour to the programming, the
efficiency of C language has reached to zenith in terms of
efficient storing , accessing and manipulation of data, speed and
reliability.
Bibliography
 ANSI C by E Balagurusamy
 http://www.slideshare.net
 Wikipedia
Please!!
Any
Questions?
Thank
you!!

More Related Content

PPTX
Array in C
PPTX
Array in c
PPTX
Arrays in c
PDF
Arrays In C
PPTX
Basic array in c programming
PPTX
Array in c programming
PPTX
Array in C
PPTX
Array in-c
Array in C
Array in c
Arrays in c
Arrays In C
Basic array in c programming
Array in c programming
Array in C
Array in-c

What's hot (20)

PPTX
Arrays In C Language
PPTX
Array,MULTI ARRAY, IN C
PPTX
Arrays in c
PPTX
Introduction to Array ppt
PPTX
Array in (C) programing
PPTX
Arrays in c language
PPTX
Array in c programming
PPTX
Array in c language
PDF
Lecture17 arrays.ppt
PPTX
Array c programming
PPSX
C Programming : Arrays
PPTX
Array in c++
PPTX
Array in c programming
PPT
Arrays Class presentation
PPTX
A Presentation About Array Manipulation(Insertion & Deletion in an array)
PPT
Arrays Basics
PPTX
Presentation on array
PPT
Arrays in c
PPTX
Array C programming
PPT
Array in c
Arrays In C Language
Array,MULTI ARRAY, IN C
Arrays in c
Introduction to Array ppt
Array in (C) programing
Arrays in c language
Array in c programming
Array in c language
Lecture17 arrays.ppt
Array c programming
C Programming : Arrays
Array in c++
Array in c programming
Arrays Class presentation
A Presentation About Array Manipulation(Insertion & Deletion in an array)
Arrays Basics
Presentation on array
Arrays in c
Array C programming
Array in c
Ad

Viewers also liked (7)

PPT
PPTX
Array in c language
PPTX
Array in c language
DOC
Lab 5 array
PPT
Multidimensional array in C
PPSX
C programming array & shorting
PPT
Array Presentation (EngineerBaBu.com)
Array in c language
Array in c language
Lab 5 array
Multidimensional array in C
C programming array & shorting
Array Presentation (EngineerBaBu.com)
Ad

Similar to Array in c (20)

PPTX
Arrays in Data Structure and Algorithm
PPTX
Arrays-from-Basics-to-Advanced final.pptx
PPTX
PDF
Arrays
PPT
strings.ppt
PPTX
A singly linked list is a linear data structure
PPTX
BHARGAVIARRAY.PPT.pptx
PDF
Algorithm and Data Structure - Array and Struct
PPTX
DOCX
PDF
arrays-130116232821-phpapp02.pdf
PPTX
Array in c
PPTX
Arrays and Strings in C Programming PPT by AI
PPTX
ARRAY.pptx
PPTX
PPTX
PPTX
c2ppt.pptxslidenoteseceslidenoteseceslidenoteseceslidenoteseceslidenotesece
PPTX
a1.pptxArrays1Arrays1Arrays1Arrays1Arrays1
PPTX
OOPs with java
PPTX
ARRAYSCPP.pptx
Arrays in Data Structure and Algorithm
Arrays-from-Basics-to-Advanced final.pptx
Arrays
strings.ppt
A singly linked list is a linear data structure
BHARGAVIARRAY.PPT.pptx
Algorithm and Data Structure - Array and Struct
arrays-130116232821-phpapp02.pdf
Array in c
Arrays and Strings in C Programming PPT by AI
ARRAY.pptx
c2ppt.pptxslidenoteseceslidenoteseceslidenoteseceslidenoteseceslidenotesece
a1.pptxArrays1Arrays1Arrays1Arrays1Arrays1
OOPs with java
ARRAYSCPP.pptx

Recently uploaded (20)

PPTX
Unit 5 BSP.pptxytrrftyyydfyujfttyczcgvcd
PPT
Ppt for engineering students application on field effect
PDF
July 2025: Top 10 Read Articles Advanced Information Technology
PDF
flutter Launcher Icons, Splash Screens & Fonts
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PDF
dse_final_merit_2025_26 gtgfffffcjjjuuyy
PDF
Traditional Exams vs Continuous Assessment in Boarding Schools.pdf
PPTX
Chapter----five---Resource Recovery.pptx
PPTX
Security-Responsibilities-in-the-Cloud-Azure-Shared-Responsibility-Model.pptx
PDF
Queuing formulas to evaluate throughputs and servers
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PPTX
AgentX UiPath Community Webinar series - Delhi
PDF
오픈소스 LLM, vLLM으로 Production까지 (Instruct.KR Summer Meetup, 2025)
PPTX
ANIMAL INTERVENTION WARNING SYSTEM (4).pptx
PPTX
Practice Questions on recent development part 1.pptx
PDF
Monitoring Global Terrestrial Surface Water Height using Remote Sensing - ARS...
PPTX
Glazing at Facade, functions, types of glazing
PDF
Principles of Food Science and Nutritions
PPTX
Internship_Presentation_Final engineering.pptx
PPTX
Soil science - sampling procedures for soil science lab
Unit 5 BSP.pptxytrrftyyydfyujfttyczcgvcd
Ppt for engineering students application on field effect
July 2025: Top 10 Read Articles Advanced Information Technology
flutter Launcher Icons, Splash Screens & Fonts
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
dse_final_merit_2025_26 gtgfffffcjjjuuyy
Traditional Exams vs Continuous Assessment in Boarding Schools.pdf
Chapter----five---Resource Recovery.pptx
Security-Responsibilities-in-the-Cloud-Azure-Shared-Responsibility-Model.pptx
Queuing formulas to evaluate throughputs and servers
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
AgentX UiPath Community Webinar series - Delhi
오픈소스 LLM, vLLM으로 Production까지 (Instruct.KR Summer Meetup, 2025)
ANIMAL INTERVENTION WARNING SYSTEM (4).pptx
Practice Questions on recent development part 1.pptx
Monitoring Global Terrestrial Surface Water Height using Remote Sensing - ARS...
Glazing at Facade, functions, types of glazing
Principles of Food Science and Nutritions
Internship_Presentation_Final engineering.pptx
Soil science - sampling procedures for soil science lab

Array in c

  • 1. ARRAYS IN C (1-Dimensional & 2-Dimensional) By: Anish Kumar 12/CS/60 Haldia Institute Of Technology Introduction1-D2-DApplicationsOperations LimitationsConclusionBibliography
  • 2. Introduction Array is a derived data type that represents a collection of the similar types of data with continuous memory locations with fixed size sequence. Roles  Efficient storing of large volume of data  Efficient access and manipulation of data  Helpful in viewing complex problem in simpler way  Single name for multiple data  Structured Data Type
  • 4. 1-Dimensional Array Data_type var_name[Expression] Data Type is the type of elements to be stored in the array Var_name is the name of the array like any Other variables Expression specifies the number of elements to be stored In array Example : int num[10]; char city[9]= “HALDIA”; char city[9]={ ‘H’,’A’,’L’,’D’,’I’,’A’} Num[0] =data1 Num[1] =data2 Num[2] =data3 Num[3] =data4 Num[4] =data5 Num[5] =data6 Num[6] =data7 Num[7] =data8 Num[8] =data9 Num[9] =data10
  • 5. 2-DIMENSIONAL ARRAY 0 1 2 3 4 0 1 2 3 4 0 1 2 3 4 0 1 2 7 3 4 int matrix[5] [5]; matrix[2] [1] = 7 0 1 2 0 1 2 3 1 4 5 6 2 7 8 9 3 10 11 12 int array [4][5]; or Int [][] array ={ {1, 2, 3}, {4, 5, 6}, {7, 8, 9}, {10, 11, 12} };
  • 6. Applications  Matrix Problem  Solving different algorithms, graph & tree problem  Sparse Matrix  Storing and searching of large amount of data  Stack, Queue  Array of pointers, Dynamic Arrays
  • 7. OPERATIONS IN ARRAY INSERTION DELETION MERGING TWO ARRAYS TRAVERSING SORTING SEARCHING
  • 8. Limitations  Wastage of memory space. We cannot change size of array at the run time.  It can store only similar type of data.  Sometimes it is not easy to operate with many index arrays.
  • 9. Conclusion Array has added a new flavour to the programming, the efficiency of C language has reached to zenith in terms of efficient storing , accessing and manipulation of data, speed and reliability. Bibliography  ANSI C by E Balagurusamy  http://www.slideshare.net  Wikipedia