#include <stdio.h>
#include <stdlib.h>
void sort (int *oldarray, int *newarray, int length)
{
// do your stuff, and put result in newarray
}
int main()
{
int length = 7;
int oldarray[length];
int newarray[length];
// here would be a loop that populates the oldarray
sort(oldarray, newarray, length);
// a loop that prints the newarray from the sort or main function
return 0;
}