I missed one logic, try this one, see if it came out different. Added : This is the correct one. i.e. fill the first array first, then the second can calculate on it.
Sets a new size for the first dimension. If executed successfully, it returns count of all elements contained in the array after resizing, otherwise, returns -1, and array is not resized. Note: Array declared at a local level in a function and resized will remain unchanged after the function has completed its operation. After the function has been recalled, such array will have a size differing from the declared one.
your welcome Dropje,
I missed one logic, try this one, see if it came out different. Added : This is the correct one. i.e. fill the first array first, then the second can calculate on it.
Good luck
cameo
Note: Array declared at a local level in a function and resized will remain unchanged after the function has completed its operation. After the function has been recalled, such array will have a size differing from the declared one.