array problem

array problem

offline
  • Pridružio: 30 Sep 2006
  • Poruke: 137

let's say we have an array mark_totals[11], and here is the data that is stored in the array.

mark_totals[10] = 1
mark_totals[3] = 1
mark_totals[5] = 1
mark_totals[8] = 1

if i now call a function -> histogram(mark_totals) , what will be the value of the mark_totals?



Registruj se da bi učestvovao u diskusiji. Registrovanim korisnicima se NE prikazuju reklame unutar poruka.
offline
  • Pridružio: 26 Jul 2004
  • Poruke: 1472
  • Gde živiš: Vojvodina,Zrenjanin

If you send a function parametar mark_totals then you send a first element of the array. mark_totals is mark_totals[0].



offline
  • Pridružio: 30 Sep 2006
  • Poruke: 137

ok, thanks for the explanation.

Ko je trenutno na forumu
 

Ukupno su 1148 korisnika na forumu :: 73 registrovanih, 6 sakrivenih i 1069 gosta   ::   [ Administrator ] [ Supermoderator ] [ Moderator ] :: Detaljnije

Najviše korisnika na forumu ikad bilo je 3466 - dana 01 Jun 2021 17:07

Korisnici koji su trenutno na forumu:
Korisnici trenutno na forumu: 357magnum, 9191vs, arsa, Asparagus, Asteker, Betta, bobo85, bojankrstc, bojanM84, bokisha253, Boris90, brane2208, Bushek, ccoogg123, CZP10C, DalmatinacMF, dearg, del boy, deLacy, DENIRO, djboj, DJORDJE-NO-1, DJUNTA, Dovla 1980, DragoslavS, drale12, Georgius, Goran_, goxin, hyla, ivan_8282, jarovitt, jodzula, klaudioce, kolle.the.kid, Kubovac, kuntalo, Macalone, maksi007, mane123, markolopin, maveric43, Medojed, Mercury, MiGac, milimoj, Milovan Dinic, nebkv, nextyamb, operniki, Paklenica, probisic, ruma, sabros, saputnik plavetnila, sekretar, sixpac, stibium51, TheBeastOfMG, theNedjeljko, Tihi86, travisrise, tubular, Underwood, USSVoyager, vathra, vazduh, Vlado82, Vojkan Petrovic, Vrač, vukan0799, Zdilar, zeka013