>arr[i] = arr[i] + arr[9-i] ;
>arr[9-i] = arr[i] - arr[9-i] ;
>arr[i] = arr[i] - arr[9-i]
That's clever and braindead at the same time. Unless of course you didn't discover that solution, in which case it's just braindead.
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Offline 11,807 posts
since Sep 2004