What is an Array?
+25
Jung kook
iramae
Ferre
Bermon O. Ferreras Jr
Rfrancis03
ellariana
HENERAL LUNA
Richard
Rhei
rsls
Noob
jandercoliao
Asdfghjkl
Asparin
Passerby
Myra Monique Acuna
Pox
Lawrence
judedominguiano
airojames
Emie Ligutan
Sean
Sean Monacillo
LouiseSebastianeYagi
justjoking10
29 posters
- NoobExpert
- Posts : 11
Join date : 2018-08-16
Re: What is an Array?
Thu Aug 16, 2018 10:34 am
airojames wrote:Mam medyo witty po tanong ko kasi natanong na yata nila lahat haha
mam may perpendicular array po ba?
wala atang ganon parallel lang siya brodie
Re: What is an Array?
Thu Aug 16, 2018 10:34 am
Noob wrote:iramae wrote:
What is Arrays?
• Arrays is a series or list of values in computer memory
• All the values must be the same data type
• Each data item is one element of the array
• You can indicate the number of elements an array will hold—the size of the array
• Each array element is differentiated from the others with a unique subscript, also called an index
In this example, it shows a three-element array declaration
num prices[3] = {25.00, 36.50, 47.99}
prices[0] = 25.00
prices[1] = 36.50
prices[2] = 47.99
There are some reminders in declaring an arrays, these are:
1. Make sure any subscript remains less than the constant value.
2. Declare a named numeric constant to be used every time the array is accessed.
What are the characteristics of an array?
1. An array is a list of data items in contiguous memory locations.
2. Each data item in an array is an element.
3. Each array element is the same data type; by default, this means that each element is the same size.
4. Each element is differentiated from the others by a subscript, which is a whole number.
5. Usable subscripts for an array range from 0 to one less than the number of elements in an array.
6. Each array element can be used in the same way as a single item of the same data type.
ma'am salamat po! sana ay gabayan niyo pa po kami upang ang aming kaalaman ay umusbong ng sobra
hahaha sure XD
- NoobExpert
- Posts : 11
Join date : 2018-08-16
Re: What is an Array?
Thu Aug 16, 2018 10:34 am
Noob wrote:airojames wrote:Mam medyo witty po tanong ko kasi natanong na yata nila lahat haha
mam may perpendicular array po ba?
wala atang ganon parallel lang siya brodie
walang perpendicular
- rslsExpert
- Posts : 11
Join date : 2018-08-05
Re: What is an Array?
Thu Aug 16, 2018 10:35 am
iramae wrote:Passerby wrote:Ma'am I don't know if this has already been asked or anything but I'll ask anyway.
Ma'am what are the different types of arrays? Or does it even have different types?
Yes, there are different types of array, it can be indexed arrays, associative array, single dimensional array and multidimensional array.
Pwede paki explain pa ung different types of arrays. thanks.
- NoobExpert
- Posts : 11
Join date : 2018-08-16
Re: What is an Array?
Thu Aug 16, 2018 10:35 am
Noob wrote:Noob wrote:airojames wrote:Mam medyo witty po tanong ko kasi natanong na yata nila lahat haha
mam may perpendicular array po ba?
wala atang ganon parallel lang siya brodie
walang perpendicular
- NoobExpert
- Posts : 11
Join date : 2018-08-16
Re: What is an Array?
Thu Aug 16, 2018 10:36 am
Noob wrote:Noob wrote:Noob wrote:airojames wrote:Mam medyo witty po tanong ko kasi natanong na yata nila lahat haha
mam may perpendicular array po ba?
wala atang ganon parallel lang siya brodie
walang perpendicular
- NoobExpert
- Posts : 11
Join date : 2018-08-16
Re: What is an Array?
Thu Aug 16, 2018 10:36 am
Noob wrote:Noob wrote:Noob wrote:Noob wrote:airojames wrote:Mam medyo witty po tanong ko kasi natanong na yata nila lahat haha
mam may perpendicular array po ba?
wala atang ganon parallel lang siya brodie
walang perpendicular
- NoobExpert
- Posts : 11
Join date : 2018-08-16
Re: What is an Array?
Thu Aug 16, 2018 10:36 am
Noob wrote:Noob wrote:Noob wrote:Noob wrote:Noob wrote:airojames wrote:Mam medyo witty po tanong ko kasi natanong na yata nila lahat haha
mam may perpendicular array po ba?
wala atang ganon parallel lang siya brodie
walang perpendicular
mas lalo na vertical na array? hirap namang gawin nun hahah
Re: What is an Array?
Thu Aug 16, 2018 10:38 am
Noob wrote:Noob wrote:Noob wrote:Noob wrote:Noob wrote:Noob wrote:airojames wrote:Mam medyo witty po tanong ko kasi natanong na yata nila lahat haha
mam may perpendicular array po ba?
wala atang ganon parallel lang siya brodie
walang perpendicular
mas lalo na vertical na array? hirap namang gawin nun hahah
Vertical or either multidimensional
- AsparinExpert
- Posts : 10
Join date : 2018-08-16
Location : Hanapin mo~
Re: What is an Array?
Thu Aug 16, 2018 10:38 am
airojames wrote:Mam medyo witty po tanong ko kasi natanong na yata nila lahat haha
mam may perpendicular array po ba?
Kahit hindi ako si Ma'am sasagutin ko ang tanung mo. Merun ata~ haha
- AsparinExpert
- Posts : 10
Join date : 2018-08-16
Location : Hanapin mo~
Re: What is an Array?
Thu Aug 16, 2018 10:38 am
[quote="Asparin"]
Kahit hindi ako si Ma'am sasagutin ko ang tanung mo.
airojames wrote:Mam medyo witty po tanong ko kasi natanong na yata nila lahat haha
mam may perpendicular array po ba?
Kahit hindi ako si Ma'am sasagutin ko ang tanung mo.
- NoobExpert
- Posts : 11
Join date : 2018-08-16
Re: What is an Array?
Thu Aug 16, 2018 10:39 am
iramae wrote:Emie Ligutan wrote:Pano nmn po kung ung first element po nung array ay may value na. For example po 9 .tapos ung ibang element ay 0 na. Ang array size po ay [998] pano po yun sa declaration? May shorcut parin po ba o kylangan ilagay na lahat sa declaration ung 998 na elements.??
Maaari siguro na ganto
num price[998]={9}
para yung unang element lang meron, yung mga susunod, 0 na kase wala nang katabi yung 9 ee, si array na bahala maglagay ng initial value sa iba pang element which is 0.
hmmm bale po automatic nalang po siya magpapalit ng initial value ma'am???
- AsparinExpert
- Posts : 10
Join date : 2018-08-16
Location : Hanapin mo~
Re: What is an Array?
Thu Aug 16, 2018 10:39 am
[quote="Asparin"]
Kahit hindi ako si Ma'am sasagutin ko ang tanung mo. Wala daw.
airojames wrote:Mam medyo witty po tanong ko kasi natanong na yata nila lahat haha
mam may perpendicular array po ba?
Kahit hindi ako si Ma'am sasagutin ko ang tanung mo. Wala daw.
Re: What is an Array?
Thu Aug 16, 2018 10:40 am
Asparin wrote:Asparin wrote:airojames wrote:Mam medyo witty po tanong ko kasi natanong na yata nila lahat haha
mam may perpendicular array po ba?
Kahit hindi ako si Ma'am sasagutin ko ang tanung mo.
Okay lang na sagutin yung tanong ng iba
- NoobExpert
- Posts : 11
Join date : 2018-08-16
Re: What is an Array?
Thu Aug 16, 2018 10:40 am
justjoking10 wrote:Ang tingin ko naman kaya walang list sa loob ng array kc may variable n for the list.
Example. List1 = (banana, apple, orange)
Pag nilagay mo sya s array dba ang variable lng ung mababago. Imbis n List1 ung variable mo, magiging Array1[0].
oo un rin ung pagkakaintindi ko brodiee e ee
- NoobExpert
- Posts : 11
Join date : 2018-08-16
Re: What is an Array?
Thu Aug 16, 2018 10:41 am
iramae wrote:Noob wrote:Noob wrote:Noob wrote:Noob wrote:Noob wrote:Noob wrote:airojames wrote:Mam medyo witty po tanong ko kasi natanong na yata nila lahat haha
mam may perpendicular array po ba?
wala atang ganon parallel lang siya brodie
walang perpendicular
mas lalo na vertical na array? hirap namang gawin nun hahah
Vertical or either multidimensional
Ma'Am ask ko lang po paano po ung sa multidimensional di ko po siya nagets eee
- RheiExpert
- Posts : 10
Join date : 2018-08-16
Re: What is an Array?
Thu Aug 16, 2018 10:42 am
maam kaya po bang gawing array yung clock problem? Example po sana.
Re: What is an Array?
Thu Aug 16, 2018 10:42 am
Noob wrote:iramae wrote:Emie Ligutan wrote:Pano nmn po kung ung first element po nung array ay may value na. For example po 9 .tapos ung ibang element ay 0 na. Ang array size po ay [998] pano po yun sa declaration? May shorcut parin po ba o kylangan ilagay na lahat sa declaration ung 998 na elements.??
Maaari siguro na ganto
num price[998]={9}
para yung unang element lang meron, yung mga susunod, 0 na kase wala nang katabi yung 9 ee, si array na bahala maglagay ng initial value sa iba pang element which is 0.
hmmm bale po automatic nalang po siya magpapalit ng initial value ma'am???
yung initial value nya sa declaration lang magaganap, bale lahat 0 yan, pero kapag nagprogram kana, mapapalitan na values na, kung gusto mo ulit siya ibalik sa 0 kapag nasa gitna kana ng programming, pwede mo siya iinitialize by using FOR Loop.
- RichardExpert
- Posts : 10
Join date : 2018-08-05
Re: What is an Array?
Thu Aug 16, 2018 10:43 am
int main() {
int number1;
int number2;
int number3;
int number4;
int number5;
number1 = 10;
number2 = 20;
number3 = 30;
number4 = 40;
number5 = 50;
printf( "number1: %d\n", number1);
printf( "number2: %d\n", number2);
printf( "number3: %d\n", number3);
printf( "number4: %d\n", number4);
printf( "number5: %d\n", number5);
}
ganto po ba yun?
int number1;
int number2;
int number3;
int number4;
int number5;
number1 = 10;
number2 = 20;
number3 = 30;
number4 = 40;
number5 = 50;
printf( "number1: %d\n", number1);
printf( "number2: %d\n", number2);
printf( "number3: %d\n", number3);
printf( "number4: %d\n", number4);
printf( "number5: %d\n", number5);
}
ganto po ba yun?
- RichardExpert
- Posts : 10
Join date : 2018-08-05
Re: What is an Array?
Thu Aug 16, 2018 10:44 am
is it a data structure, which can store a fixed-size collection of elements of the same data type?
- RichardExpert
- Posts : 10
Join date : 2018-08-05
Re: What is an Array?
Thu Aug 16, 2018 10:44 am
or it is used to store a collection of data? or both?
Re: What is an Array?
Thu Aug 16, 2018 10:44 am
Richard wrote:is it a data structure, which can store a fixed-size collection of elements of the same data type?
Yes it is.
- jandercoliaoExpert
- Posts : 10
Join date : 2018-08-16
Re: What is an Array?
Thu Aug 16, 2018 10:45 am
ang masasabi ko sa ARRAY is ARAY
- HENERAL LUNAExpert
- Posts : 10
Join date : 2018-08-16
Re: What is an Array?
Thu Aug 16, 2018 10:45 am
maam may limit po ba yung number nang arrays ?
- HENERAL LUNAExpert
- Posts : 10
Join date : 2018-08-16
Re: What is an Array?
Thu Aug 16, 2018 10:45 am
jandercoliao wrote:ang masasabi ko sa ARRAY is ARAY
Depende sa user
Permissions in this forum:
You cannot reply to topics in this forum