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 1024 korisnika na forumu :: 63 registrovanih, 11 sakrivenih i 950 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., acatomic, airsuba, ajo baba, arzak, Atenjanin89, awathorn, Ben Roj, bigfoot, BraneS, Buda Baba, cavatina, cikadeda, Dejan84, DejanSt, dejoglina, Denaya, DPera, draganl, Drazenbg, dukajov, Fog of War, j-tasha, kairos, karevski, kokodakalo, Kriglord, Lazarus, mercedesamg, MIg, mikki jons, Milan A. Nikolic, miodrag, oganj123, oldtimer, ostoja, Parker, pein, promajauglavi, rikirubio, RiV, RobinHood12, Rocker, sakota79, sovanova95, Srle993, stalja, Stoilkovic, strela, theNedjeljko, vaso1, Vatrogasaccc, Vlada1389, VladaNS1978, vobo, vukovi, wolf431, zalutalo prase, zastavnik, zmajbre, Šraf, 187