I have 3 arrays that each contain 5 numbers between 0 and 6. The total non-0 numbers for all 3 arrays is 5. I want to put those 5 non-0 numbers into a single array. Any idea how I would do it? At the moment I'm basing my approach on the simple method of copying one array to another:
but I don't seem to be getting anywhere. ThanksCode:for (i=0; i<5; i++) { finalarray[i]=rdarray[i]; }