Clear all values in an array

Does clearing all values in an array meaning reducing the amount of elements in the array to 0, or initializing all the current elements to 0?
Last edited on
Hello Shezshade,

Usually clearing an array means to set each element to zero. If you tried to reduce the size of the array or remove elements it would create bigger problems afterwords.

Depending on what type of array you have it may take a for loop to set each element to zero,

Hope that helps,

Andy
Thank you.
Topic archived. No new replies allowed.