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 1079 korisnika na forumu :: 56 registrovanih, 6 sakrivenih i 1017 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: _Rade, A.R.Chafee.Jr., Andrija357, babaroga, Bokiboks, bufanje, ccoogg123, cer, darkojbn, Denaya, Dorcolac, dragoljub11987, dule10savic, Fabius, FileFinder, Gosha101980, goxsys, ikan, ivica976, Karla, Komentator, Kubovac, kybonacci, ladro, laki_bb, madza, Metanoja, nextyamb, Nobunaga, novator, nuke92, ObelixSRB, ozzy, Panter, panzerwaffe, procesor, randja26, RJ, S-lash, samsung, simazr, slonic_tonic, Smiljke, solic, SR-3m, Srle993, stalja, Stoilkovic, Tas011, Tvrtko I, Vlad000, voja64, vukovi, wolf431, wolverined4, zillbg