Array Question

dashival

New Member
Reaction score
11
Since arrays start at 0, does a size 4 array go 0-4 or 0-3? Meaning, four slots or up to the number four?
 
P

Pawnable

Guest
It goes up to 4? Its simple... 0-4... 0 to the ending number.
 

dashival

New Member
Reaction score
11
But it says size, so I was thinking it might mean the size of the array, four spaces, which would be 0-3.
 

emjlr3

Change can be a good thing
Reaction score
395
dont worry about size, dont set it as anything

there should be no reason you would ever need to use that option
 

SFilip

Gone but not forgotten
Reaction score
634
size only represents the indexes that have their initial value set to w/e you pick.
and according to what i tried it seems that size 4 means 0-4.
however if you leave the default value untouched then you can just set it to 0...
 
General chit-chat
Help Users

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top