SlideShare a Scribd company logo
1 of 3
ARRAYS:-
an arrays is a sequence of data items of
homogenus.
value(same tipe)
arrays have two type.
One dimenstional array.
Two dimensional arrays.
an aray that have one subscript /index value to
slect an element is called “one dimenstional
array”.
decleration of ODA…
SYNTAX:- DATA TYPE_ARRAY NAME (SIZE);
int age {5};
the starting base address of element of the array is
known as the base address of that elements or
arrays.
INITILLIZATION OF ONE_DIMENSTIONAL ARRAYS:-
int age [5 ]= {10,20,30,40,50};
int age [ ]= 10,20,30,40,50};
Accing array element:-
scanf(“%d,&age[2]”);
PROGRAM:- write a program to find the marks of n
student using (ODA) ARRAY…?
#include <stdio.h>
#include<conio.h>
main ()
{
int marks {10},I,n,sum=0;
printf(“enter #of std”);
scanf(“%d”&n);
for(I=0;i<n;i++);
printf(“enter marks of std %d”,i+1);
scanf(“%d”,marks [i]);
sum=marks [i];
}
scanf(“%d”,&age[2]);
printf(“sum=%d”,sum);
return0;
}
TWO DIMENSTIONAL ARRAYS:-
the arrays that have two subscript value to acess
an element is known as two dimenstional arrays.
two dimensional array are called matrix in
mathematic & table in busness application.
SYNTAX:-
data type_ array name [row][col];
float matrix [3][3];

More Related Content

What's hot

Median-udf in mysql : Step By Step Installation And Problem Fixes For Install...
Median-udf in mysql : Step By Step Installation And Problem Fixes For Install...Median-udf in mysql : Step By Step Installation And Problem Fixes For Install...
Median-udf in mysql : Step By Step Installation And Problem Fixes For Install...theGhost_k8
 

What's hot (6)

Arrays
ArraysArrays
Arrays
 
Loops and arrays
Loops and arraysLoops and arrays
Loops and arrays
 
Median-udf in mysql : Step By Step Installation And Problem Fixes For Install...
Median-udf in mysql : Step By Step Installation And Problem Fixes For Install...Median-udf in mysql : Step By Step Installation And Problem Fixes For Install...
Median-udf in mysql : Step By Step Installation And Problem Fixes For Install...
 
PPt. on An _Array in C
PPt. on An _Array in CPPt. on An _Array in C
PPt. on An _Array in C
 
PHP Basic & Arrays
PHP Basic & ArraysPHP Basic & Arrays
PHP Basic & Arrays
 
2. array and numerical arrays
2. array and numerical arrays2. array and numerical arrays
2. array and numerical arrays
 

Viewers also liked

Word of the Day, Oct. 18
Word of the Day, Oct. 18Word of the Day, Oct. 18
Word of the Day, Oct. 18winky987
 
Employee empowerment - Vlerick 1005
Employee empowerment - Vlerick 1005Employee empowerment - Vlerick 1005
Employee empowerment - Vlerick 1005Kris Decoodt
 
word of the day october
word of the day octoberword of the day october
word of the day octoberjsapolin
 
Průzkum informačních portálů v souvislosti s informacemi o VŠ v Dánsku
Průzkum informačních portálů v souvislosti s informacemi o VŠ v DánskuPrůzkum informačních portálů v souvislosti s informacemi o VŠ v Dánsku
Průzkum informačních portálů v souvislosti s informacemi o VŠ v DánskuMŠMT IPN KREDO
 
Get Cybersmart for Career Success
Get Cybersmart for Career SuccessGet Cybersmart for Career Success
Get Cybersmart for Career SuccessHelen Dixon
 
상상Univ 출품작
상상Univ 출품작상상Univ 출품작
상상Univ 출품작dnsgkr23
 
Nonoat 2011 - Anuário
Nonoat 2011 - AnuárioNonoat 2011 - Anuário
Nonoat 2011 - AnuárioIgor Almeida
 
Mariah Delgadillo's Resume new
Mariah Delgadillo's Resume newMariah Delgadillo's Resume new
Mariah Delgadillo's Resume newmariah delgadillo
 
Poslovna statistika ii novo
Poslovna  statistika  ii novoPoslovna  statistika  ii novo
Poslovna statistika ii novoNedim Ikanovic
 
Is it plausible to argue that realism possesses an “eternal relevance” in exp...
Is it plausible to argue that realism possesses an “eternal relevance” in exp...Is it plausible to argue that realism possesses an “eternal relevance” in exp...
Is it plausible to argue that realism possesses an “eternal relevance” in exp...AzmiSuhaimi
 
Fsc certificate
Fsc certificateFsc certificate
Fsc certificateMack Yang
 
Akuzativ i-dativ (1)
Akuzativ i-dativ (1)Akuzativ i-dativ (1)
Akuzativ i-dativ (1)Bznzgc
 
Impact is coming - research impact and social media
Impact is coming - research impact and social mediaImpact is coming - research impact and social media
Impact is coming - research impact and social mediaEsther De Smet
 
Thin Endometrium & Infertility (Part – I) , Dr. Sharda Jain , Life Care Centre
Thin Endometrium & Infertility(Part – I) , Dr. Sharda Jain , Life Care Centre Thin Endometrium & Infertility(Part – I) , Dr. Sharda Jain , Life Care Centre
Thin Endometrium & Infertility (Part – I) , Dr. Sharda Jain , Life Care Centre Lifecare Centre
 

Viewers also liked (20)

Word of the Day, Oct. 18
Word of the Day, Oct. 18Word of the Day, Oct. 18
Word of the Day, Oct. 18
 
Employee empowerment - Vlerick 1005
Employee empowerment - Vlerick 1005Employee empowerment - Vlerick 1005
Employee empowerment - Vlerick 1005
 
word of the day october
word of the day octoberword of the day october
word of the day october
 
Apollo healthcare
Apollo healthcareApollo healthcare
Apollo healthcare
 
Průzkum informačních portálů v souvislosti s informacemi o VŠ v Dánsku
Průzkum informačních portálů v souvislosti s informacemi o VŠ v DánskuPrůzkum informačních portálů v souvislosti s informacemi o VŠ v Dánsku
Průzkum informačních portálů v souvislosti s informacemi o VŠ v Dánsku
 
Get Cybersmart for Career Success
Get Cybersmart for Career SuccessGet Cybersmart for Career Success
Get Cybersmart for Career Success
 
TheDaiShow
TheDaiShowTheDaiShow
TheDaiShow
 
Data bps
Data bpsData bps
Data bps
 
Plagiarism
PlagiarismPlagiarism
Plagiarism
 
Communications and the crisis: regulatory and policy implications
Communications and the crisis: regulatory and policy implicationsCommunications and the crisis: regulatory and policy implications
Communications and the crisis: regulatory and policy implications
 
상상Univ 출품작
상상Univ 출품작상상Univ 출품작
상상Univ 출품작
 
Nonoat 2011 - Anuário
Nonoat 2011 - AnuárioNonoat 2011 - Anuário
Nonoat 2011 - Anuário
 
Mariah Delgadillo's Resume new
Mariah Delgadillo's Resume newMariah Delgadillo's Resume new
Mariah Delgadillo's Resume new
 
Poslovna statistika ii novo
Poslovna  statistika  ii novoPoslovna  statistika  ii novo
Poslovna statistika ii novo
 
Is it plausible to argue that realism possesses an “eternal relevance” in exp...
Is it plausible to argue that realism possesses an “eternal relevance” in exp...Is it plausible to argue that realism possesses an “eternal relevance” in exp...
Is it plausible to argue that realism possesses an “eternal relevance” in exp...
 
Fsc certificate
Fsc certificateFsc certificate
Fsc certificate
 
Akuzativ i-dativ (1)
Akuzativ i-dativ (1)Akuzativ i-dativ (1)
Akuzativ i-dativ (1)
 
Seminario n °17
Seminario n °17Seminario n °17
Seminario n °17
 
Impact is coming - research impact and social media
Impact is coming - research impact and social mediaImpact is coming - research impact and social media
Impact is coming - research impact and social media
 
Thin Endometrium & Infertility (Part – I) , Dr. Sharda Jain , Life Care Centre
Thin Endometrium & Infertility(Part – I) , Dr. Sharda Jain , Life Care Centre Thin Endometrium & Infertility(Part – I) , Dr. Sharda Jain , Life Care Centre
Thin Endometrium & Infertility (Part – I) , Dr. Sharda Jain , Life Care Centre
 

Similar to what is arrays in c language (20)

Arrays In C
Arrays In CArrays In C
Arrays In C
 
Arrays
ArraysArrays
Arrays
 
Arrays
ArraysArrays
Arrays
 
Unit 2-Arrays.pptx
Unit 2-Arrays.pptxUnit 2-Arrays.pptx
Unit 2-Arrays.pptx
 
C_Arrays.pptx
C_Arrays.pptxC_Arrays.pptx
C_Arrays.pptx
 
C Programming : Arrays
C Programming : ArraysC Programming : Arrays
C Programming : Arrays
 
Array
ArrayArray
Array
 
Arrays in Data Structure and Algorithm
Arrays in Data Structure and Algorithm Arrays in Data Structure and Algorithm
Arrays in Data Structure and Algorithm
 
02 arrays
02 arrays02 arrays
02 arrays
 
Data structure.pptx
Data structure.pptxData structure.pptx
Data structure.pptx
 
CP Handout#7
CP Handout#7CP Handout#7
CP Handout#7
 
Data structures and algorithms arrays
Data structures and algorithms   arraysData structures and algorithms   arrays
Data structures and algorithms arrays
 
Arrays
ArraysArrays
Arrays
 
ARRAYSCPP.pptx
ARRAYSCPP.pptxARRAYSCPP.pptx
ARRAYSCPP.pptx
 
Array in C
Array in CArray in C
Array in C
 
Class notes(week 4) on arrays and strings
Class notes(week 4) on arrays and stringsClass notes(week 4) on arrays and strings
Class notes(week 4) on arrays and strings
 
07. Java Array, Set and Maps
07.  Java Array, Set and Maps07.  Java Array, Set and Maps
07. Java Array, Set and Maps
 
Class notes(week 4) on arrays and strings
Class notes(week 4) on arrays and stringsClass notes(week 4) on arrays and strings
Class notes(week 4) on arrays and strings
 
2 Arrays & Strings.pptx
2 Arrays & Strings.pptx2 Arrays & Strings.pptx
2 Arrays & Strings.pptx
 
Arrays
ArraysArrays
Arrays
 

Recently uploaded

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
 
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
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
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
 
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
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
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
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
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
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...Pooja Nehwal
 
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
 
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
 
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
 
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
 
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
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
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
 

Recently uploaded (20)

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
 
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
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
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
 
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
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
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
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
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
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
 
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
 
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
 
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
 
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
 
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
 
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...
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
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
 

what is arrays in c language

  • 1. ARRAYS:- an arrays is a sequence of data items of homogenus. value(same tipe) arrays have two type. One dimenstional array. Two dimensional arrays. an aray that have one subscript /index value to slect an element is called “one dimenstional array”. decleration of ODA… SYNTAX:- DATA TYPE_ARRAY NAME (SIZE); int age {5}; the starting base address of element of the array is known as the base address of that elements or arrays. INITILLIZATION OF ONE_DIMENSTIONAL ARRAYS:-
  • 2. int age [5 ]= {10,20,30,40,50}; int age [ ]= 10,20,30,40,50}; Accing array element:- scanf(“%d,&age[2]”); PROGRAM:- write a program to find the marks of n student using (ODA) ARRAY…? #include <stdio.h> #include<conio.h> main () { int marks {10},I,n,sum=0; printf(“enter #of std”); scanf(“%d”&n); for(I=0;i<n;i++); printf(“enter marks of std %d”,i+1); scanf(“%d”,marks [i]);
  • 3. sum=marks [i]; } scanf(“%d”,&age[2]); printf(“sum=%d”,sum); return0; } TWO DIMENSTIONAL ARRAYS:- the arrays that have two subscript value to acess an element is known as two dimenstional arrays. two dimensional array are called matrix in mathematic & table in busness application. SYNTAX:- data type_ array name [row][col]; float matrix [3][3];