|
-
Aug 9th, 2015, 10:53 AM
#1
Array indices, change the element order?
If I have a function that accepts an array as a parameter, e.g.
double DoStuff(int arr[])
Are there any ways of specifiying the indices of that array to effect a change in the array element order?
So doing something like...
double DoStuff(int arr[3,1,0,2])
or
double DoStuff(int arr[3], arr[1], arr[0], arr[2])
or
something similar?
I can of course create a new array with the elements in the revised order and pass that, but just wondered if there is a shortcut for this?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|