let us assume XOR of array element is =01010
1.then we calculate pos. of the first bit pair its 1
2 then we calculate the members have same bit at the same pos.
i don"t understand how the XOR of x with ( array element having same bit at the position ) gives us the first number which no pair in array
x=x ^ arr [ i ] // how it give us the first number