That only works if you want to reinitialize the array though and it can't be independent. You would have to pick a specific formula and use it. For example Value could be replaced with X * 9 + 3. So you would get this:
You can't quite do it in one line, but you probably could in less then 10. I'm picturing a function that takes new array as a parameter, then uses a for loop to overwrite the old array.
1 2 3
template<class DATA, class Arg1, class Arg2>
DATA SillyFunction(Arg1 TargetArray[], Arg2 NewData[], int Size)
{for(int i = 0; i <= Size; i++) TargetArray[i] = NewData[i];}
This is off the top of my head so I don't know if it truely works yet. I'll give it a shot and post back with the results.
EDIT: It appears to work. I suggest setting a variable to set the size of your array, this prevents having to change a dozen literals if you want to change the size of your arrays.
REEDIT: By the way I am in no way discouraging the use of the STL containers. They are there for a reason and a vector is a very powerful one to use.