Hi,
I have encountered a problem with array. Basically I would like to extract all the non-zero element from an array and save it to another array.
I had tried a couple of my thoughts but they didn't work. If I use "array element not equal to zero" as trigger for saving the value to the second array, than it wouldn't work two consecutive non-zero element. So could anyone help me with this logic please?
By the way I am also wondering how does the "array length" work? Because we always have to initialize the array first, and the "array length" function cannot detect the actual array length.
Thanks a lot.