Driven Program
int main ( ) { int a [ ] = { 1 , 3 , 5 , 7 , 2 , 4 , 6 , 8 } ; int n = sizeof ( a ) / sizeof ( a [ 0 ] ) ; shuffleArray ( a , n / 2 ) ; for ( int i = 0 ; i < n ; i ++ ) cout << a [ i ] << " ▁ " ; return 0 ; }