It kind of annoys me when people don't google their problem before making a post...I'm sure this would return plenty results. You could either pass the array you want to modify by reference or pass a pointer to the start of the array and return a pointer to the start of the modified array,