Let's say that I have an array with 144 elements, let's say that it is test[144], and all of the elements has their own values. Simply, all the array elements are assigned to certain values. Now I need to group them (partition them, or say create blocks) with 48 elements and send them to a certain function, what I mean is that I need the first 48 elements of the array called test, then second 48 elements, and finally the last 48 elements.
So how can I do this in C? And what if the user enters the size of the array and I need to group (partition) the elements as explained above?
Thanks in advance.
This post has been edited by erkant: 17 March 2012 - 10:52 AM

New Topic/Question
Reply



MultiQuote



|