previous | index | next

Swapping Array Elements

Q: How to swap two elements a[i] and a[j] of an integer array?

previous | index | next