14
karma
7y

Is the array half full or half empty 🤔🤔

Comments
  • 7
    How can an array be "half full". When creating one you allocate space for it so there's no air in it. Only my opinion 😂
  • 6
    It's always full of something. Whether or not you care what is it, is up to you. So, half full of garbage.
  • 3
    An array then has 0's in it if its only changed halfways /shrug
  • 4
    Neither, an array can only contain what has been allocated to it, no more, no less.
  • 2
    it's half full in both halves
  • 2
    It's twice the size needed.
Add Comment