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 1170 korisnika na forumu :: 14 registrovanih, 0 sakrivenih i 1156 gosta   ::   [ Administrator ] [ Supermoderator ] [ Moderator ] :: Detaljnije

Najviše korisnika na forumu ikad bilo je 15694 - dana 01 Feb 2026 12:23

Korisnici koji su trenutno na forumu:
Korisnici trenutno na forumu: Bane san, Bojke549, debeli, Despot1, drale12, farabut, Futurama, MiloradKomadic, Mzee, Sharpshooter, shiro, SOM, Vaske8990, VJ