Driver code
int main ( ) { int A [ ] = { 2 , 4 , 1 , 3 , 5 } ; int K = 5 ; int n = sizeof ( A ) / sizeof ( A [ 0 ] ) ; constructXORArray ( A , n , K ) ; int B [ ] = { 4 , 75 , 45 , 42 } ; K = 2 ; n = sizeof ( B ) / sizeof ( B [ 0 ] ) ; constructXORArray ( B , n , K ) ; return 0 ; }