Share
Go down
avatar
Expert
Posts : 11
Join date : 2018-08-16
View user profile

Re: What is an Array?

on 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
avatar
Admin
Posts : 139
Join date : 2018-07-19
Age : 19
View user profilehttp://iramaecomp.forumotion.com

Re: What is an Array?

on 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 Very Happy

hahaha sure XD
avatar
Expert
Posts : 11
Join date : 2018-08-16
View user profile

Re: What is an Array?

on 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
Expert
Posts : 11
Join date : 2018-08-05
View user profile

Re: What is an Array?

on 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.
avatar
Expert
Posts : 11
Join date : 2018-08-16
View user profile

Re: What is an Array?

on 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

avatar
Expert
Posts : 11
Join date : 2018-08-16
View user profile

Re: What is an Array?

on 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


avatar
Expert
Posts : 11
Join date : 2018-08-16
View user profile

Re: What is an Array?

on 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



avatar
Expert
Posts : 11
Join date : 2018-08-16
View user profile

Re: What is an Array?

on 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
avatar
Admin
Posts : 139
Join date : 2018-07-19
Age : 19
View user profilehttp://iramaecomp.forumotion.com

Re: What is an Array?

on 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
Expert
Posts : 10
Join date : 2018-08-16
Location : Hanapin mo~
View user profile

Re: What is an Array?

on 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
Expert
Posts : 10
Join date : 2018-08-16
Location : Hanapin mo~
View user profile

Re: What is an Array?

on Thu Aug 16, 2018 10:38 am
[quote="Asparin"]
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.
avatar
Expert
Posts : 11
Join date : 2018-08-16
View user profile

Re: What is an Array?

on 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???
Expert
Posts : 10
Join date : 2018-08-16
Location : Hanapin mo~
View user profile

Re: What is an Array?

on Thu Aug 16, 2018 10:39 am
[quote="Asparin"]
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.
avatar
Admin
Posts : 139
Join date : 2018-07-19
Age : 19
View user profilehttp://iramaecomp.forumotion.com

Re: What is an Array?

on 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 Smile
avatar
Expert
Posts : 11
Join date : 2018-08-16
View user profile

Re: What is an Array?

on 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 Laughing
avatar
Expert
Posts : 11
Join date : 2018-08-16
View user profile

Re: What is an Array?

on 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
Expert
Posts : 10
Join date : 2018-08-16
View user profile

Re: What is an Array?

on Thu Aug 16, 2018 10:42 am
maam kaya po bang gawing array yung clock problem? Example po sana.
avatar
Admin
Posts : 139
Join date : 2018-07-19
Age : 19
View user profilehttp://iramaecomp.forumotion.com

Re: What is an Array?

on 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.
avatar
Expert
Posts : 10
Join date : 2018-08-05
View user profile

Re: What is an Array?

on 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?
avatar
Expert
Posts : 10
Join date : 2018-08-05
View user profile

Re: What is an Array?

on 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?
avatar
Expert
Posts : 10
Join date : 2018-08-05
View user profile

Re: What is an Array?

on Thu Aug 16, 2018 10:44 am
or it is used to store a collection of data? or both?
avatar
Admin
Posts : 139
Join date : 2018-07-19
Age : 19
View user profilehttp://iramaecomp.forumotion.com

Re: What is an Array?

on 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.
Expert
Posts : 10
Join date : 2018-08-16
View user profile

Re: What is an Array?

on Thu Aug 16, 2018 10:45 am
ang masasabi ko sa ARRAY is ARAY Exclamation lol! lol! lol! lol! lol! lol!
Expert
Posts : 10
Join date : 2018-08-16
View user profile

Re: What is an Array?

on Thu Aug 16, 2018 10:45 am
maam may limit po ba yung number nang arrays ?
Expert
Posts : 10
Join date : 2018-08-16
View user profile

Re: What is an Array?

on Thu Aug 16, 2018 10:45 am
jandercoliao wrote:ang masasabi ko sa ARRAY is ARAY Exclamation lol! lol! lol! lol! lol! lol!

Depende sa user Twisted Evil Twisted Evil Twisted Evil
Sponsored content

Re: What is an Array?

Back to top
Permissions in this forum:
You cannot reply to topics in this forum