I'm looking to swap second every row in an array. I do not know the length of the array beforehand. I do, however, know that it will be divisible by 2.
As an example:
101 102 147 148
would become
102 101 148 147
Any help would be greatly appreciated.
Thanks
Mike