Quote Originally Posted by Juliusbk View Post
If there are k elements in the array, and m>k*N, then of course the array should be filled with N's.
this is not clear to me, do you mean that the array should grow in size in this case ? or that the to be distributed amount should be truncated to k*N ?